diff options
Diffstat (limited to 'install/ui/src/freeipa/widget.js')
-rw-r--r-- | install/ui/src/freeipa/widget.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js index 8f1208e0..4570c903 100644 --- a/install/ui/src/freeipa/widget.js +++ b/install/ui/src/freeipa/widget.js @@ -303,6 +303,10 @@ IPA.text_widget = function(spec) { } }; + that.is_enabled = function(value) { + return !that.input.prop('disabled'); + }; + that.set_enabled = function(value) { that.input.prop('disabled', !value); |