/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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(); });