Search

3/10/2009

overwrite dialog cancel function

http://yuiblog.com/sandbox/yui/v270/examples/container/conditional-close.html


oDialog.cancel = function () {
if (window.confirm("Are you sure you want to close this Dialog?")) {
// Call the original implementation of the cancel method
YAHOO.widget.Dialog.prototype.cancel.call(this);
}
};

沒有留言: