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
Index: trunk/core/admin_templates/catalog/catalog.tpl
===================================================================
diff -u -r5009 -r5025
--- trunk/core/admin_templates/catalog/catalog.tpl (.../catalog.tpl) (revision 5009)
+++ trunk/core/admin_templates/catalog/catalog.tpl (.../catalog.tpl) (revision 5025)
@@ -18,7 +18,7 @@