From e1136ebc42305021329320f1c4b4ca3d534ce40c Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Mon, 3 Jun 2013 16:34:31 +0200 Subject: [PATCH] Using .prop instead of .attr. see #402 --- modoboa/static/js/global.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modoboa/static/js/global.js b/modoboa/static/js/global.js index b8d59c7bd..d58a2a1d4 100644 --- a/modoboa/static/js/global.js +++ b/modoboa/static/js/global.js @@ -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);