X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..6a7e4474cba9d8be4b2ec445e10f1691f7277c50:/examples/window/hello.js diff --git a/examples/window/hello.js b/examples/window/hello.js index 4a346c44..f39b6875 100644 --- a/examples/window/hello.js +++ b/examples/window/hello.js @@ -1,43 +1,43 @@ /*! - * Ext JS Library 3.1.1 - * Copyright(c) 2006-2010 Ext JS, LLC + * Ext JS Library 3.2.0 + * Copyright(c) 2006-2010 Ext JS, Inc. * licensing@extjs.com * http://www.extjs.com/license */ -Ext.onReady(function(){ - var win; - var button = Ext.get('show-btn'); - - button.on('click', function(){ - // create the window on the first click and reuse on subsequent clicks - if(!win){ - win = new Ext.Window({ - applyTo:'hello-win', - layout:'fit', - width:500, - height:300, - closeAction:'hide', - plain: true, - - items: new Ext.TabPanel({ - applyTo: 'hello-tabs', - autoTabs:true, - activeTab:0, - deferredRender:false, - border:false - }), - - buttons: [{ - text:'Submit', - disabled:true - },{ - text: 'Close', - handler: function(){ - win.hide(); - } - }] - }); - } - win.show(this); - }); +Ext.onReady(function(){ + var win; + var button = Ext.get('show-btn'); + + button.on('click', function(){ + // create the window on the first click and reuse on subsequent clicks + if(!win){ + win = new Ext.Window({ + applyTo:'hello-win', + layout:'fit', + width:500, + height:300, + closeAction:'hide', + plain: true, + + items: new Ext.TabPanel({ + applyTo: 'hello-tabs', + autoTabs:true, + activeTab:0, + deferredRender:false, + border:false + }), + + buttons: [{ + text:'Submit', + disabled:true + },{ + text: 'Close', + handler: function(){ + win.hide(); + } + }] + }); + } + win.show(this); + }); }); \ No newline at end of file