Index: trunk/kernel/admin_templates/incs/ajax.js =================================================================== diff -u -N -r5030 -r5031 --- trunk/kernel/admin_templates/incs/ajax.js (.../ajax.js) (revision 5030) +++ trunk/kernel/admin_templates/incs/ajax.js (.../ajax.js) (revision 5031) @@ -58,7 +58,7 @@ } Request.getProgressHtml = function() { - return "

" + _progressText + "
" + _progressText + "

"; + return "

" + Request.progressText + "
" + Request.progressText + "

"; } Request.getErrorHtml = function(p_req) { Index: trunk/core/admin_templates/js/catalog.js =================================================================== diff -u -N -r5030 -r5031 --- trunk/core/admin_templates/js/catalog.js (.../catalog.js) (revision 5030) +++ trunk/core/admin_templates/js/catalog.js (.../catalog.js) (revision 5031) @@ -8,6 +8,7 @@ this.TabRegistry = new Array(); this.ActivePrefix = getCookie(this.CookiePrefix + 'active_prefix'); + this.PreviousPrefix = this.ActivePrefix; $ViewMenus = new Array('c'); } @@ -46,6 +47,11 @@ document.getElementById($params[0]).innerHTML = $text; } + if ($params[1] != 'categories_div') { + // don't add alternative grids to categories, only between item tabs + $GridManager.AddAlternativeGrid($Catalog.ActivePrefix, $Catalog.PreviousPrefix, true); + } + if (isset($Debugger)) $Debugger.Clear(); } @@ -101,9 +107,10 @@ if (this.ActivePrefix != $prefix) { // hide source tab - document.getElementById(this.ActivePrefix + '_tab').className = 'catalog-tab-unselected'; - document.getElementById(this.queryTabRegistry('prefix', this.ActivePrefix, 'tab_id') + '_div').style.display = 'none'; - this.HideDependentButtons(this.ActivePrefix); + this.PreviousPrefix = this.ActivePrefix; + document.getElementById(this.PreviousPrefix + '_tab').className = 'catalog-tab-unselected'; + document.getElementById(this.queryTabRegistry('prefix', this.PreviousPrefix, 'tab_id') + '_div').style.display = 'none'; + this.HideDependentButtons(this.PreviousPrefix); } // show destination tab @@ -123,7 +130,7 @@ var $url = this.URLMask.replace('#TEMPLATE_NAME#', this.queryTabRegistry('prefix', $prefix, 'module_path') + '/catalog_tab'); $url = $url.replace('#CATEGORY_ID#', $cat_id); - Request.makeRequest($url, this.BusyRequest, $div_id, this.successCallback, this.errorCallback, $div_id); + Request.makeRequest($url, this.BusyRequest, $div_id, this.successCallback, this.errorCallback, $div_id); } /*else { alert('refresh disabled = {tab: '+this.ActivePrefix+'; cat_id: '+$cat_id+'}'); Index: trunk/core/admin_templates/catalog/catalog.tpl =================================================================== diff -u -N -r5030 -r5031 --- trunk/core/admin_templates/catalog/catalog.tpl (.../catalog.tpl) (revision 5030) +++ trunk/core/admin_templates/catalog/catalog.tpl (.../catalog.tpl) (revision 5031) @@ -17,7 +17,7 @@