summaryrefslogtreecommitdiffstats
path: root/install/ui/field.js
diff options
context:
space:
mode:
authorPetr Voborník <pvoborni@redhat.com>2012-02-09 17:21:09 +0100
committerPetr Vobornik <pvoborni@redhat.com>2012-02-29 12:59:13 +0100
commita1f8c39f88dac7c0999175528d4c1e90a8dd1210 (patch)
tree43733d631c7bf72ee9105190f842d1a210c1ab4a /install/ui/field.js
parent7c392cb9a85e1534bd1133c4e0c9c3831058b4e7 (diff)
downloadfreeipa-a1f8c39f88dac7c0999175528d4c1e90a8dd1210.tar.gz
freeipa-a1f8c39f88dac7c0999175528d4c1e90a8dd1210.tar.xz
freeipa-a1f8c39f88dac7c0999175528d4c1e90a8dd1210.zip
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
Diffstat (limited to 'install/ui/field.js')
-rw-r--r--install/ui/field.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/install/ui/field.js b/install/ui/field.js
index 46802be6c..2922ce0fb 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;
}