Return to Snippet

Revision: 52574
at October 26, 2011 20:12 by simondiercks


Initial Code
var dlg = new dojox.widget.DialogSimple(...);

dlg.orgHide = dlg.hide;
dlg.hide = function () {};
dojo.connect(dlg, "onCancel", function(e){
   if (confirm("Really close?"))
      this.orgHide();
});

Initial URL

                                

Initial Description

                                

Initial Title
Confirm closing Dojo Dialog

Initial Tags

                                

Initial Language
JavaScript