summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2012-07-26 10:13:00 +0200
committerPetr Vobornik <pvoborni@redhat.com>2012-08-02 10:27:17 +0200
commit1a94109f4ad5bcb304c4c23af868c3cf07ce92ec (patch)
tree836b99ec9608fa5cb746d27e8ebc6a68210363ae
parent8ce157910a86dc8abf16b4846cabe61052a6754d (diff)
downloadfreeipa-1a94109f4ad5bcb304c4c23af868c3cf07ce92ec.tar.gz
freeipa-1a94109f4ad5bcb304c4c23af868c3cf07ce92ec.tar.xz
freeipa-1a94109f4ad5bcb304c4c23af868c3cf07ce92ec.zip
Fixed incorrect use of jQuery.attr for setting disabled attribute
Occurance: select_widget Update to latest version of jQuery uncovered this issue. https://fedorahosted.org/freeipa/ticket/2817
-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);
}
}
};