Sha256: ca4b1be6af32bc4914cfbd9623202c55f8de33207561c60d726d35543b753ad4
Contents?: true
Size: 1.93 KB
Versions: 9
Compression:
Stored size: 1.93 KB
Contents
{ initComponent: function(){ this.callParent(); this.mainPanel = this.down('panel[itemId="main_panel"]'); this.menuBar = this.down('container[itemId="menu_bar"]'); var statusBar = this.statusBar = this.down('container[itemId="status_bar"]'); Ext.util.History.on('change', this.processHistory, this); // Setting the "busy" indicator for Ajax requests Ext.Ajax.on('beforerequest', function(){ statusBar.showBusy(); }); Ext.Ajax.on('requestcomplete', function(){ statusBar.hideBusy(); }); Ext.Ajax.on('requestexception', function(){ statusBar.hideBusy(); }); // Initialize history Ext.util.History.init(); }, afterRender: function(){ this.callParent(); // If we are given a token, load the corresponding component, otherwise load the last loaded component var currentToken = Ext.util.History.getToken(); if (currentToken != "") { this.processHistory(currentToken); } else { var lastLoaded = this.initialConfig.componentToLoad; // passed from the server if (lastLoaded) Ext.util.History.add(lastLoaded); } }, processHistory: function(token){ if (token){ this.mainPanel.removeAll(); this.loadNetzkeComponent({name: token, container: this.mainPanel}); } else { this.mainPanel.removeAll(); } }, // instantiateComponent: function(config){ // this.mainPanel.instantiateChild(config); // }, appLoadComponent: function(name){ Ext.util.History.add(name); }, loadNetzkeComponentByAction: function(action){ var componentName = action.component || action.name; if (componentName) this.appLoadComponent(componentName); }, // DEPRECATED loadComponentByAction: function(action) { Netzke.deprecationWarning("loadComponentByAction is deprecated in favor of loadNetzkeComponentByAction"); this.loadNetzkeComponentByAction(action); }, onToggleConfigMode: function(params){ this.toggleConfigMode(); } }
Version data entries
9 entries across 9 versions & 2 rubygems