Index: trunk/core/admin_templates/js/catalog.js =================================================================== diff -u -r5024 -r5025 --- trunk/core/admin_templates/js/catalog.js (.../catalog.js) (revision 5024) +++ trunk/core/admin_templates/js/catalog.js (.../catalog.js) (revision 5025) @@ -1,14 +1,13 @@ var $is_catalog = true; -function Catalog($url_mask) { +function Catalog($url_mask, $cookie_prefix) { + this.CookiePrefix = $cookie_prefix ? $cookie_prefix : ''; this.BusyRequest = false; this.URLMask = $url_mask; this.Separator = '#separator#'; this.TabRegistry = new Array(); - - // get from cookie - this.ActivePrefix = ''; + this.ActivePrefix = getCookie(this.CookiePrefix + 'active_prefix'); $ViewMenus = new Array('c'); } @@ -107,6 +106,7 @@ var $div_id = this.queryTabRegistry('prefix', this.ActivePrefix, 'tab_id') + '_div'; // destination tab document.getElementById($div_id).style.display = 'block'; this.ShowDependentButtons(this.ActivePrefix); + setCookie(this.CookiePrefix + 'active_prefix', this.ActivePrefix); $ViewMenus = new Array('c', this.ActivePrefix); // this.TabRegistry.length == 1