summaryrefslogtreecommitdiffstats
path: root/install/ui/field.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/field.js')
-rw-r--r--install/ui/field.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/install/ui/field.js b/install/ui/field.js
index 1caab161..c448c41c 100644
--- a/install/ui/field.js
+++ b/install/ui/field.js
@@ -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)) {