Using .prop instead of .attr.

see #402
This commit is contained in:
Antoine Nguyen
2013-06-03 16:34:31 +02:00
parent e074cb616d
commit e1136ebc42
+1 -1
View File
@@ -241,7 +241,7 @@ function activate_widget(e) {
var widget_id = $this.attr("id").substr(0, $this.attr("id").length - 4);
var $widget = $('#' + widget_id);
if ($this.attr("checked") && $this.attr("checked") == "checked") {
if ($this.prop("checked")) {
$widget.attr('disabled', true);
} else {
$widget.attr('disabled', false);