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
This commit is contained in:
Petr Voborník
2012-01-19 10:28:44 +01:00
committed by Endi S. Dewata
parent 71f9343480
commit 1f3d8003f7
11 changed files with 5250 additions and 265 deletions

View File

@@ -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)) {