Login Register

Stopping users closing dialogs

Hello,

How do I stop a dialog being closed by the user (via the cross)?

john

try this............

You can fetch the dialog by id and set the "alreadyInitialized" attribute to false.

to make it close able make it true..............

var my_dialog = dijit.byId("id");
   my_dialog._alreadyInitialized=false;

hide it.

hide the close icon with css. It would be something like:

.dijitDialog .dijitDialogCloseIcon { display:none; }