Index: trunk/kernel/admin_templates/incs/catalog.js =================================================================== diff -u -N -r5137 -r5194 --- trunk/kernel/admin_templates/incs/catalog.js (.../catalog.js) (revision 5137) +++ trunk/kernel/admin_templates/incs/catalog.js (.../catalog.js) (revision 5194) @@ -157,7 +157,7 @@ this.ShowDependentButtons(this.ActivePrefix); this.setViewMenu(this.ActivePrefix); setCookie(this.CookiePrefix + 'active_prefix', this.ActivePrefix); - + // this.TabRegistry.length == 1 var $cat_id = get_hidden_field('m_cat_id'); var $tab_cat_id = document.getElementById($div_id).getAttribute('category_id'); @@ -168,7 +168,6 @@ this.BusyRequest[$prefix] = false; Request.makeRequest($url, this.BusyRequest[$prefix], $div_id, this.successCallback, this.errorCallback, $div_id, this); -// $Debugger.ShowProps(this.BusyRequest); } /*else { alert('refresh disabled = {tab: '+this.ActivePrefix+'; cat_id: '+$cat_id+'}'); @@ -236,5 +235,5 @@ } Catalog.prototype.setViewMenu = function($item_prefix) { - $ViewMenus = new Array('c', $item_prefix); + $ViewMenus = isset($item_prefix) ? new Array('c', $item_prefix) : new Array('c'); } \ No newline at end of file