examples/dialog/hello.js
authorAlan Knowles <alan@akkbhome.com>
Sun, 12 Sep 2010 07:18:58 +0000 (15:18 +0800)
committerAlan Knowles <alan@akkbhome.com>
Sun, 12 Sep 2010 07:18:58 +0000 (15:18 +0800)
examples/dialog/hello.js

index 90b63f4..378c30f 100644 (file)
@@ -82,7 +82,7 @@ HelloWorld = {
         });
             
     }
-}                
+};                
 
 \r
 // create the HelloWorld application (single instance)\r
@@ -122,4 +122,9 @@ var HelloWorld = function(){
 \r
 // using onDocumentReady instead of window.onload initializes the application\r
 // when the DOM is ready, without waiting for images and other resources to load\r
-Roo.onReady(HelloWorld.init, HelloWorld, true);
\ No newline at end of file
+Roo.onReady(function() {
+    var showBtn = Roo.get('show-dialog-btn');
+    showBtn.on('click',function () {
+        HelloWorld.show({ _el, this});
+    });
+});
\ No newline at end of file