Posted By

simondiercks on 10/26/11


Tagged

confirm hide onhide dialog close Dojo onclose oncancel


Versions (?)

Confirm closing Dojo Dialog


 / Published in: JavaScript
 

  1. var dlg = new dojox.widget.DialogSimple(...);
  2.  
  3. dlg.orgHide = dlg.hide;
  4. dlg.hide = function () {};
  5. dojo.connect(dlg, "onCancel", function(e){
  6. if (confirm("Really close?"))
  7. this.orgHide();
  8. });

Report this snippet  

You need to login to post a comment.