Ox.Dialog: add public methods to enable/disable close button
This commit is contained in:
parent
53a5a22fee
commit
619aa33d8d
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue