Sha256: d1ab5b4ec65d65c7109e908b932df2eb3370af842c1d701228d09d5d944038d5
Contents?: true
Size: 1.63 KB
Versions: 5
Compression:
Stored size: 1.63 KB
Contents
Ext.define("Compass.ErpApp.Desktop.Applications.Knitkit",{ extend:"Ext.ux.desktop.Module", id:'knitkit-win', init : function(){ this.launcher = { text: 'KnitKit', iconCls:'icon-palette', handler : this.createWindow, scope: this } }, createWindow : function(){ //*********************************************************** //Might get rid of this or make it an option you can select var title = 'KnitKit-' + currentUser.description //*********************************************************** var desktop = this.app.getDesktop(); var win = desktop.getWindow('knitkit'); this.centerRegion = new Compass.ErpApp.Desktop.Applications.Knitkit.CenterRegion(); if(!win){ win = desktop.createWindow({ id: 'knitkit', title:title, autoDestroy:true, width:1200, height:550, maximized:true, iconCls: 'icon-palette', shim:false, animCollapse:false, constrainHeader:true, layout: 'border', items:[ this.centerRegion, { xtype:'knitkit_eastregion', module:this }, { xtype:'knitkit_westregion', centerRegion:this.centerRegion, module:this } ] }); } win.show(); } });
Version data entries
5 entries across 5 versions & 1 rubygems