var Actions = {}; var showCaseNavigatorPanel; var hideCaseNavigatorPanel; var informationMenu; var caseMenuOpen = false; var toReviseTreeOpen = false; var menuSelectedTitle = Array(); var _ENV_CURRENT_DATE; var winTree; historyGridListChangeLogGlobal = {}; historyGridListChangeLogGlobal.idHistory = ''; historyGridListChangeLogGlobal.tasTitle = ''; historyGridListChangeLogGlobal.viewIdDin = ''; historyGridListChangeLogGlobal.viewIdHistory = ''; historyGridListChangeLogGlobal.viewDynaformName = ''; historyGridListChangeLogGlobal.dynDate = ''; ActionTabFrameGlobal = {}; ActionTabFrameGlobal.tabName = ''; ActionTabFrameGlobal.tabTitle = ''; ActionTabFrameGlobal.tabData = ''; Ext.onReady(function(){ Ext.QuickTips.init(); showCaseNavigatorPanel = function(app_status) { if (typeof(treeToReviseTitle) != 'undefined'){ var treeToRevise = new Ext.tree.TreePanel({ title: treeToReviseTitle, width: 250, height: 250, userArrows: true, animate: true, autoScroll: true, rootVisible: false, dataUrl: casesPanelUrl, root: { nodeType : 'async', text : 'To Revise', id : 'node-root' }, listeners: { render: function() { this.expandAll(); } } }); if (typeof(winTree) == 'undefined') { winTree = new Ext.Window({ id : 'toReviseWindow', width : 220, height : 300, el : 'toReviseTree', collapsible : true, plain : true, x : 100, y : 100, closable : false, constrain : true, items : [treeToRevise] }); } if (!toReviseTreeOpen){ winTree.show(this); toReviseTreeOpen = true; } } if( caseMenuOpen ) return false; else caseMenuOpen = true; //get the menu Ext.Ajax.request({ url : 'ajaxListener', params : {action : 'getCaseMenu', app_status:app_status}, success: function ( result, request ) { var data = Ext.util.JSON.decode(result.responseText); for(i=0; i