mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
committed by
Endi S. Dewata
parent
71f9343480
commit
1f3d8003f7
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user