summaryrefslogtreecommitdiffstats
path: root/install/ui/ipa.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/ipa.js')
-rw-r--r--install/ui/ipa.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/install/ui/ipa.js b/install/ui/ipa.js
index 433d7fe6..441e6468 100644
--- a/install/ui/ipa.js
+++ b/install/ui/ipa.js
@@ -1207,6 +1207,22 @@ IPA.create_options = function(labels, values) {
return options;
};
+IPA.is_empty = function(value) {
+
+ var empty = false;
+
+ if (!value) empty = true;
+
+ if (value instanceof Array) {
+ empty = empty || value.length === 0 ||
+ (value.length === 1) && (value[0] === '');
+ }
+
+ if (value === '') empty = true;
+
+ return empty;
+};
+
IPA.config = {
default_priority: 500
};