Ticket #6739: dialog.patch
| File dialog.patch, 1.5 kB (added by guest, 8 months ago) |
|---|
-
Dialog.js
337 337 // summary: display the dialog 338 338 339 339 if(this.open){ return; } 340 340 341 alert(this.domNode); 341 342 // first time we show the dialog, there's some initialization stuff to do 342 343 if(!this._alreadyInitialized){ 343 344 this._setup(); -
tests/test_Dialog.html
59 59 } 60 60 setTimeout(function(){thirdDlg.show();},"3000"); 61 61 } 62 63 var invite; 64 dojo.addOnLoad(function() { 65 invite = new dijit.Dialog({title: "TEST"}, dojo.byId('dialogTest')); 66 }); 67 62 68 </script> 63 69 </head> 64 70 <body class="tundra"> … … 66 72 <h1 class="testTitle">Dijit layout.Dialog tests</h1> 67 73 <button dojoType="dijit.form.Button" onclick="dijit.byId('dialog1').show()">Show Dialog</button> | 68 74 75 <a href="javascript:invite.show()" style="font-weight:bold;">Open Dialog</a> 76 69 77 <div dojoType="dijit.Dialog" id="dialog1" title="First Dialog" 70 78 onfocus="console.log('user focus handler')" 71 79 onblur="console.log('user blur handler')" … … 98 106 </table> 99 107 </div> 100 108 101 109 <div id="dialogTest"></div> 110 102 111 <button dojoType="dijit.form.Button" onclick="createDialog()" title="shows after 3 second delay, with blue background">Programatic Dialog (3 second delay)</button> | 103 112 104 113