diff --git a/source/Ox.UI/js/Window/Dialog.js b/source/Ox.UI/js/Window/Dialog.js index f3d27299..41b0a1d8 100644 --- a/source/Ox.UI/js/Window/Dialog.js +++ b/source/Ox.UI/js/Window/Dialog.js @@ -698,6 +698,11 @@ Ox.Dialog = function(options, self) { }); }; + that.disableCloseButton = function() { + self.$closeButton && self.$closeButton.options({disabled: true}); + return that; + }; + /*@ enableButton enable button (id) -> enable button @@ -717,6 +722,11 @@ Ox.Dialog = function(options, self) { }); }; + that.enableCloseButton = function() { + self.$closeButton && self.$closeButton.options({disabled: false}); + return that; + }; + /*@ open open () -> open dialog