dijit.Dialog.show
dojo.require("dijit.Dialog");
defined in dijit/Dialog.js
display the dialog
Usage
function () (view source)
if(this.open){ return; } // first time we show the dialog, there's some initialization stuff to do if(!this._alreadyInitialized){ this._setup(); this._alreadyInitialized=true; } if(this._fadeOut.status() == "playing"){ this._fadeOut.stop(); } this._modalconnects.push(dojo.connect(window, "onscroll", this, "layout")); this._modalconnects.push(dojo.connect(dojo.doc.documentElement, "onkeypress", this, "_onKey")); dojo.style(this.domNode, "opacity", 0); this.domNode.style.visibility=""; this.open = true; this._loadCheck(); // lazy load trigger this._position(); this._fadeIn.play(); this._savedFocus = dijit.getFocus(this); // find focusable Items each time dialog is shown since if dialog contains a widget the // first focusable items can change this._getFocusItems(this.domNode); // set timeout to allow the browser to render dialog setTimeout(dojo.hitch(this, function(){ dijit.focus(this._firstFocusItem); }), 50);