Upgrade to ExtJS 3.1.0 - Released 12/16/2009
[extjs.git] / examples / window / hello.js
index 0f39206..db68186 100644 (file)
@@ -1,11 +1,9 @@
-/*\r
- * Ext JS Library 2.2.1\r
- * Copyright(c) 2006-2009, Ext JS, LLC.\r
- * licensing@extjs.com\r
- * \r
- * http://extjs.com/license\r
- */\r
-\r
+/*!
+ * Ext JS Library 3.1.0
+ * Copyright(c) 2006-2009 Ext JS, LLC
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
 Ext.onReady(function(){\r
     var win;\r
     var button = Ext.get('show-btn');\r
 Ext.onReady(function(){\r
     var win;\r
     var button = Ext.get('show-btn');\r
@@ -14,31 +12,32 @@ Ext.onReady(function(){
         // create the window on the first click and reuse on subsequent clicks\r
         if(!win){\r
             win = new Ext.Window({\r
         // create the window on the first click and reuse on subsequent clicks\r
         if(!win){\r
             win = new Ext.Window({\r
-                applyTo     : 'hello-win',\r
-                layout      : 'fit',\r
-                width       : 500,\r
-                height      : 300,\r
-                closeAction :'hide',\r
-                plain       : true,\r
-                items       : new Ext.TabPanel({\r
-                    applyTo        : 'hello-tabs',\r
-                    autoTabs       : true,\r
-                    activeTab      : 0,\r
-                    deferredRender : false,\r
-                    border         : false\r
+                applyTo:'hello-win',\r
+                layout:'fit',\r
+                width:500,\r
+                height:300,\r
+                closeAction:'hide',\r
+                plain: true,\r
+\r
+                items: new Ext.TabPanel({\r
+                    applyTo: 'hello-tabs',\r
+                    autoTabs:true,\r
+                    activeTab:0,\r
+                    deferredRender:false,\r
+                    border:false\r
                 }),\r
 \r
                 buttons: [{\r
                 }),\r
 \r
                 buttons: [{\r
-                    text     : 'Submit',\r
-                    disabled : true\r
+                    text:'Submit',\r
+                    disabled:true\r
                 },{\r
                 },{\r
-                    text     : 'Close',\r
-                    handler  : function(){\r
+                    text: 'Close',\r
+                    handler: function(){\r
                         win.hide();\r
                     }\r
                 }]\r
             });\r
         }\r
                         win.hide();\r
                     }\r
                 }]\r
             });\r
         }\r
-        win.show(button);\r
+        win.show(this);\r
     });\r
 });
\ No newline at end of file
     });\r
 });
\ No newline at end of file