From c5bfeb1ed0fc8a31fcfea475cccc98da37f7c17e Mon Sep 17 00:00:00 2001 From: Ana Krivokapic Date: Thu, 9 May 2013 18:47:12 +0200 Subject: 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 --- install/ui/src/freeipa/widget.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'install/ui/src/freeipa/widget.js') 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); -- cgit