summaryrefslogtreecommitdiffstats
path: root/install/ui
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui')
-rw-r--r--install/ui/widget.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/install/ui/widget.js b/install/ui/widget.js
index 9e78c360..ed7fcf76 100644
--- a/install/ui/widget.js
+++ b/install/ui/widget.js
@@ -928,15 +928,13 @@ IPA.select_widget = function(spec) {
that.set_options_enabled = function(enabled, options) {
- var html_value = enabled ? '' : 'disabled';
-
if (!options) {
- $('option', that.select).attr('disabled', html_value);
+ $('option', that.select).prop('disabled', !enabled);
} else {
for (var i=0; i<options.length;i++) {
var value = options[i];
var option = $('option[value="'+value+'"]', that.select);
- option.attr('disabled', html_value);
+ option.prop('disabled', !enabled);
}
}
};