Skip to content

Commit

Permalink
Merge pull request #5276 from tchauviere/fix/modulejs-dropdown-catego…
Browse files Browse the repository at this point in the history
…ry-reset

[-] BO : module.js fix an issue on reset category filter
  • Loading branch information
Quetzacoalt91 committed Apr 12, 2016
2 parents fa7d287 + 0ad030f commit f953a84
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions admin-dev/themes/default/js/bundle/module/module.js
Expand Up @@ -989,14 +989,13 @@ var AdminModuleController = function () {
});

$('body').on('click', this.categoryResetBtnSelector, function () {
//@TODO: Some refactoring, could be a lot shorter
var rawText = $(_this.categorySelector).attr('aria-labelledby');
var upperFirstLetter = rawText.charAt(0).toUpperCase();
var removedFirstLetter = rawText.slice(1);
var originalText = upperFirstLetter + removedFirstLetter;
$(_this.categorySelectorLabelSelector).text(originalText);
$(this).hide();
_this.currentRefMenu = null;
_this.currentRefCategory = null;
_this.doSearch();
});
};
Expand Down

0 comments on commit f953a84

Please sign in to comment.