diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-07-26 10:13:00 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2012-08-02 10:27:17 +0200 |
commit | 1a94109f4ad5bcb304c4c23af868c3cf07ce92ec (patch) | |
tree | 836b99ec9608fa5cb746d27e8ebc6a68210363ae | |
parent | 8ce157910a86dc8abf16b4846cabe61052a6754d (diff) | |
download | freeipa-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.js | 6 |
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); } } }; |