Index: branches/5.0.x/core/admin_templates/js/catalog.js =================================================================== diff -u -r12230 -r12382 --- branches/5.0.x/core/admin_templates/js/catalog.js (.../catalog.js) (revision 12230) +++ branches/5.0.x/core/admin_templates/js/catalog.js (.../catalog.js) (revision 12382) @@ -374,14 +374,28 @@ } Catalog.prototype.displaySearch = function ($prefix) { - var $search_input = document.getElementById('search_keyword') + var $search_input = $('#search_keyword'); - $search_input.setAttribute('PrefixSpecial', $prefix); + $search_input.attr('PrefixSpecial', $prefix); if (this.searchInfo[$prefix]) { - $search_input.value = this.searchInfo[$prefix].keyword; - $search_input.setAttribute('Grid', this.searchInfo[$prefix].grid); + $search_input + .val(this.searchInfo[$prefix].keyword) + .attr('Grid', this.searchInfo[$prefix].grid); + + if (this.searchInfo[$prefix].keyword) { + // catalog tab found and keyword present + $search_input.addClass('filter-active'); + } + else { + // catalog tab found and keyword missing + $search_input.removeClass('filter-active'); + } } + else { + // catalog tab not found + $search_input.removeClass('filter-active'); + } } Catalog.prototype.setCurrentCategory = function($prefix, $category_id) {