Cherry-picked 7a48d5 and 10f031 from 2.1.x branch to master

This commit is contained in:
ichim-david 2013-02-03 22:01:46 +02:00
parent c08fe78355
commit e2d8543020
2 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,9 @@ Changelog
2.2.4 (unreleased) 2.2.4 (unreleased)
------------------ ------------------
- Check for 'checked' attribute in a way that work also for jQuery 1.7
[ichimdav]
- Better fix for #13037 by removing submit event trigger altogether - Better fix for #13037 by removing submit event trigger altogether
[ichimdav] [ichimdav]

View File

@ -103,7 +103,7 @@
$("input,select").live("change", function (e) { $("input,select").live("change", function (e) {
var id = $(this).attr("id"); var id = $(this).attr("id");
if (id === "form-widgets-globally_enabled-0") { if (id === "form-widgets-globally_enabled-0") {
if ($(this).attr("checked") === true) { if ($(this).attr("checked")) {
$("#content").addClass("globally_enabled"); $("#content").addClass("globally_enabled");
} }
else { else {