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.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/install/ui/field.js b/install/ui/field.js
index 2cba8786..381f2360 100644
--- a/install/ui/field.js
+++ b/install/ui/field.js
@@ -301,8 +301,8 @@ IPA.field = function(spec) {
if (!value) empty = true;
if (value instanceof Array) {
- empty |= (value.length === 0) ||
- (value.length === 1) && (value[0] === '');
+ empty = empty || value.length === 0 ||
+ (value.length === 1) && (value[0] === '');
}
if (value === '') empty = true;
@@ -480,7 +480,7 @@ IPA.multivalued_field = function(spec) {
that.test_dirty = function() {
var dirty = that.field_test_dirty();
- dirty |= that.widget.test_dirty(); //also checks order
+ dirty = dirty || that.widget.test_dirty(); //also checks order
return dirty;
};