41 lines
1.3 KiB
Diff
41 lines
1.3 KiB
Diff
|
From 1a94109f4ad5bcb304c4c23af868c3cf07ce92ec Mon Sep 17 00:00:00 2001
|
||
|
From: Petr Vobornik <pvoborni@redhat.com>
|
||
|
Date: Thu, 26 Jul 2012 10:13:00 +0200
|
||
|
Subject: [PATCH 66/79] 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
|
||
|
---
|
||
|
install/ui/widget.js | 6 ++----
|
||
|
1 file changed, 2 insertions(+), 4 deletions(-)
|
||
|
|
||
|
diff --git a/install/ui/widget.js b/install/ui/widget.js
|
||
|
index 9e78c360b7debc2a4d4f7b49f83172a8c826799e..ed7fcf76c3d5eca6c652c31b0053f60c52bddf27 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);
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
--
|
||
|
1.7.11.2
|
||
|
|