From 1f3d8003f7ccb7793be6452942f62d10433e7f27 Mon Sep 17 00:00:00 2001 From: Petr Voborník Date: Thu, 19 Jan 2012 10:28:44 +0100 Subject: 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 --- install/ui/field.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'install/ui/field.js') diff --git a/install/ui/field.js b/install/ui/field.js index 1caab161..c448c41c 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)) { -- cgit