// ----- Expired_shr_layout.js ----- COMP.ExpiredWindow = Ext.extend(COMP.Base.Window, { constructor:function(config){ var windowConfig = { title:L(27416) // ls_Expired_Session ,layout:'fit' ,closable:false ,width:320 ,height:130 ,bodyStyle:'margin:10px' ,defaultFocus:'username' ,items:[ { xtype:'displayfield' ,value:L(27415) // ls_Your_session_has_expired_or } ] ,bbar:[ '->',{text:L(5112),winEvents:{click:'next'}} // ls_Continue ] }; Ext.apply(this, windowConfig); COMP.ExpiredWindow.superclass.constructor.call(this, config); } ,initComponent:function() { COMP.ExpiredWindow.superclass.initComponent.call(this); this.addEventMapping({ next:this.next }); } ,next:function() { COMP.SetWindowLocation('/'); } ,keys: { key:[10,13] ,fn:function() { COMP.expiredWindow.next(); } } }); // ----- Expired_shr_func.js ----- Ext.onReady(function(){ COMP.expiredWindow = new COMP.ExpiredWindow(); COMP.expiredWindow.show(); setTimeout("COMP.expiredWindow.next();", 5000); }); if (window.COMP) COMP.Broadcast('scriptLoaded_Expired');