Ox.Dialog: add public methods to enable/disable close button

This commit is contained in:
rlx 2014-09-18 14:26:08 +02:00
parent 53a5a22fee
commit 619aa33d8d

View file

@ -698,6 +698,11 @@ Ox.Dialog = function(options, self) {
}); });
}; };
that.disableCloseButton = function() {
self.$closeButton && self.$closeButton.options({disabled: true});
return that;
};
/*@ /*@
enableButton <f> enable button enableButton <f> enable button
(id) -> <o> enable button (id) -> <o> enable button
@ -717,6 +722,11 @@ Ox.Dialog = function(options, self) {
}); });
}; };
that.enableCloseButton = function() {
self.$closeButton && self.$closeButton.options({disabled: false});
return that;
};
/*@ /*@
open <f> open open <f> open
() -> <o> open dialog () -> <o> open dialog