summaryrefslogtreecommitdiffstats
path: root/install/ui/widget.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/widget.js')
-rw-r--r--install/ui/widget.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/install/ui/widget.js b/install/ui/widget.js
index d46bbd8a..4ddff81f 100644
--- a/install/ui/widget.js
+++ b/install/ui/widget.js
@@ -632,18 +632,12 @@ IPA.checkbox_widget = function (spec) {
var value;
if (values && values.length) {
- // use loaded value
value = values[0];
- } else {
- // use default value
- value = that.checked;
}
- // convert string into boolean
- if (value === 'TRUE') {
- value = true;
- } else if (value === 'FALSE') {
- value = false;
+ if (typeof value !== 'boolean') {
+ // use default value
+ value = that.checked;
}
that.input.attr('checked', value);