diff options
author | Petr VobornÃk <pvoborni@redhat.com> | 2012-01-19 10:28:44 +0100 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2012-01-30 17:47:07 -0600 |
commit | 1f3d8003f7ccb7793be6452942f62d10433e7f27 (patch) | |
tree | 58ba6ece0bb5519b02728b1a0ca98d71dce8e915 /install/ui/field.js | |
parent | 71f934348095df57c3fc8f02c5e8eacc929c7354 (diff) | |
download | freeipa-1f3d8003f7ccb7793be6452942f62d10433e7f27.tar.gz freeipa-1f3d8003f7ccb7793be6452942f62d10433e7f27.tar.xz freeipa-1f3d8003f7ccb7793be6452942f62d10433e7f27.zip |
Modifying DNS UI to benefit from new DNS API
DNS UI was modified to offer structured way of defining DNS records.
https://fedorahosted.org/freeipa/ticket/2208
Diffstat (limited to 'install/ui/field.js')
-rw-r--r-- | install/ui/field.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/install/ui/field.js b/install/ui/field.js index 1caab161b..c448c41c5 100644 --- a/install/ui/field.js +++ b/install/ui/field.js @@ -101,7 +101,7 @@ IPA.field = function(spec) { that.validate_required = function() { var values = that.save(); - if (that.is_empty(values) && that.is_required()) { + if (that.is_empty(values) && that.is_required() && that.enabled) { that.valid = false; that.show_error(IPA.messages.widget.validation.required); return false; @@ -118,6 +118,8 @@ IPA.field = function(spec) { that.hide_error(); that.valid = true; + if (!that.enabled) return that.valid; + var values = that.save(); if (that.is_empty(values)) { |