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
This commit is contained in:
Petr Voborník
2012-02-09 17:21:09 +01:00
committed by Petr Vobornik
parent 7c392cb9a8
commit a1f8c39f88
6 changed files with 228 additions and 95 deletions

View File

@@ -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;
}