BUG 0000 "The activation of a tab in ADMIN does not work with URL" SOLVED

- The activation of a tab in ADMIN does not work with URL (setup/main?s=PMENTERPRISE or setup/main_init?s=PMENTERPRISE)
- Solved the problem, now looks for the variable "s" in the menu to set the active tab
This commit is contained in:
Victor Saisa Lopez
2012-05-15 09:09:13 -04:00
parent fc9690c526
commit b636c91a28
2 changed files with 86 additions and 39 deletions

View File

@@ -5,11 +5,21 @@
var _NODE_SELECTED;
var main = function(){
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
var cookiep = new Ext.state.CookieProvider();
var items = [];
var nodeLoad = [];
var i;
if (tabActive != "") {
for(i = 0; i<= tabItems.length - 1; i++) {
if (tabItems[i].id == tabActive) {
cookiep.set("admin-tabpanel", {"activeTab": i});
}
}
}
Ext.state.Manager.setProvider(cookiep);
for(i=0; i<tabItems.length; i++){
@@ -47,6 +57,10 @@ var main = function(){
loader.on("load", function () {
if (_item_selected != "") {
node = tp.getNodeById(_item_selected);
if (typeof node == "undefined") {
node = tp.getRootNode().childNodes[0];
}
}
else {
node = tp.getRootNode().childNodes[0];