Index: admin_templates/catalog/catalog_counters.tpl =================================================================== --- admin_templates/catalog/catalog_counters.tpl (revision 13756) +++ admin_templates/catalog/catalog_counters.tpl (working copy) @@ -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 Index: admin_templates/js/catalog.js =================================================================== --- admin_templates/js/catalog.js (revision 13756) +++ admin_templates/js/catalog.js (working copy) @@ -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); }