Index: branches/5.1.x/core/admin_templates/js/catalog.js =================================================================== diff -u -N -r13113 -r13817 --- branches/5.1.x/core/admin_templates/js/catalog.js (.../catalog.js) (revision 13113) +++ branches/5.1.x/core/admin_templates/js/catalog.js (.../catalog.js) (revision 13817) @@ -203,6 +203,16 @@ var $prefix = this.TabRegistry[0]['prefix']; var $url = this.URLMask.replace('#TEMPLATE_NAME#', 'catalog/catalog_counters').replace('#CATEGORY_ID#', $cat_id); + + var $last_templates = { + 'ItemSelectorCatalog': 'catalog/item_selector/item_selector_catalog', + 'ItemSelectorAdvancedView': 'catalog/item_selector/item_selector_advanced_view' + }; + + if ($last_templates[this.type] !== undefined) { + $url += '&last_template=' + $last_templates[this.type]; + } + this.BusyRequest[$prefix] = false; Request.makeRequest($url, this.BusyRequest[$prefix], '', this.updateCounters, this.errorCallback, '', this); } Index: branches/5.1.x/core/admin_templates/catalog/catalog_counters.tpl =================================================================== diff -u -N -r12657 -r13817 --- branches/5.1.x/core/admin_templates/catalog/catalog_counters.tpl (.../catalog_counters.tpl) (revision 12657) +++ branches/5.1.x/core/admin_templates/catalog/catalog_counters.tpl (.../catalog_counters.tpl) (revision 13817) @@ -18,7 +18,12 @@ setInnerHTML('category_path', ''); set_window_title( RemoveTranslationLink(document.getElementById('blue_bar').innerHTML, false).replace(/(<[^<]+>)/g, '').replace(/\s+/g, ' ').trim() ); - + + + + + + \ No newline at end of file