summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/widget.js
diff options
context:
space:
mode:
authorAna Krivokapic <akrivoka@redhat.com>2013-05-09 18:47:12 +0200
committerMartin Kosek <mkosek@redhat.com>2013-05-16 11:01:33 +0200
commitc5bfeb1ed0fc8a31fcfea475cccc98da37f7c17e (patch)
tree14c3f46121ed968a58764259a2c3c67741734a61 /install/ui/src/freeipa/widget.js
parent78774916c89a3feac7ab8b380fcd483285951a8d (diff)
downloadfreeipa-c5bfeb1ed0fc8a31fcfea475cccc98da37f7c17e.tar.gz
freeipa-c5bfeb1ed0fc8a31fcfea475cccc98da37f7c17e.tar.xz
freeipa-c5bfeb1ed0fc8a31fcfea475cccc98da37f7c17e.zip
Prompt for nameserver IP address in dnszone-add
Prompt for nameserver IP address in interactive mode of dnszone-add. Add a corresponding field to dnszone creation dialog in the web UI. This parameter is required if and only if: * New zone is a forward zone * Nameserver is defined inside the new zone Add a new unit test to cover this functionality. https://fedorahosted.org/freeipa/ticket/3603
Diffstat (limited to 'install/ui/src/freeipa/widget.js')
-rw-r--r--install/ui/src/freeipa/widget.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js
index 8f1208e0b..4570c9033 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);