From a1f8c39f88dac7c0999175528d4c1e90a8dd1210 Mon Sep 17 00:00:00 2001 From: Petr Voborník Date: Thu, 9 Feb 2012 17:21:09 +0100 Subject: DNS Zone UI: added new attributes New attributes were added to DNS zone details facet. Attributes: idnsallowquery idnsallowtransfer idnsforwarders idnsforwardpolicy idnsallowsyncptr New network address validator created for idnsallowquery and idnsallowtransfer attributes. Network address validator also added to dnszone adder dialog - from_ip field. https://fedorahosted.org/freeipa/ticket/2351 --- install/ui/field.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'install/ui/field.js') diff --git a/install/ui/field.js b/install/ui/field.js index 46802be6..2922ce0f 100644 --- a/install/ui/field.js +++ b/install/ui/field.js @@ -550,11 +550,16 @@ IPA.multivalued_field = function(spec) { that.validate = function() { + var values = that.save(); + + return that.validate_core(values); + }; + + that.validate_core = function(values) { + that.hide_error(); that.valid = true; - var values = that.save(); - if (that.is_empty(values)) { return that.valid; } -- cgit