Permalink
Browse files

Fixed #14571 -- Updated embedded jQuery from 1.4.2 to 1.9.1

Thanks dArignac for the initial patch.
  • Loading branch information...
1 parent ae2d04f commit 8bbca211b6d4457e2f7acc3d41e54373f03ecddd @claudep claudep committed Feb 18, 2013
@@ -9,7 +9,7 @@
} else {
reset();
}
- $(actionCheckboxes).attr("checked", checked)
+ $(actionCheckboxes).prop("checked", checked)
.parent().parent().toggleClass(options.selectedClass, checked);
},
updateCounter = function() {
@@ -19,7 +19,7 @@
sel: sel,
cnt: _actions_icnt
}, true));
- $(options.allToggle).attr("checked", function() {
+ $(options.allToggle).prop("checked", function() {
if (sel == actionCheckboxes.length) {
value = true;
showQuestion();
@@ -64,7 +64,7 @@
}
});
$(options.allToggle).show().click(function() {
- checker($(this).attr("checked"));
+ checker($(this).prop("checked"));
updateCounter();
});
$("div.actions span.question a").click(function(event) {
@@ -74,7 +74,7 @@
});
$("div.actions span.clear a").click(function(event) {
event.preventDefault();
- $(options.allToggle).attr("checked", false);
+ $(options.allToggle).prop("checked", false);
clearAcross();
checker(0);
updateCounter();
@@ -85,14 +85,14 @@
var target = event.target ? event.target : event.srcElement;
if (lastChecked && $.data(lastChecked) != $.data(target) && event.shiftKey === true) {
var inrange = false;
- $(lastChecked).attr("checked", target.checked)
+ $(lastChecked).prop("checked", target.checked)
.parent().parent().toggleClass(options.selectedClass, target.checked);
$(actionCheckboxes).each(function() {
if ($.data(this) == $.data(lastChecked) || $.data(this) == $.data(target)) {
inrange = (inrange) ? false : true;
}
if (inrange) {
- $(this).attr("checked", target.checked)
+ $(this).prop("checked", target.checked)
.parent().parent().toggleClass(options.selectedClass, target.checked);
}
});

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -22,8 +22,8 @@
var updateElementIndex = function(el, prefix, ndx) {
var id_regex = new RegExp("(" + prefix + "-(\\d+|__prefix__))");
var replacement = prefix + "-" + ndx;
- if ($(el).attr("for")) {
- $(el).attr("for", $(el).attr("for").replace(id_regex, replacement));
+ if ($(el).prop("for")) {
+ $(el).prop("for", $(el).prop("for").replace(id_regex, replacement));
}
if (el.id) {
el.id = el.id.replace(id_regex, replacement);
@@ -32,9 +32,9 @@
el.name = el.name.replace(id_regex, replacement);
}
};
- var totalForms = $("#id_" + options.prefix + "-TOTAL_FORMS").attr("autocomplete", "off");
+ var totalForms = $("#id_" + options.prefix + "-TOTAL_FORMS").prop("autocomplete", "off");
var nextIndex = parseInt(totalForms.val(), 10);
- var maxForms = $("#id_" + options.prefix + "-MAX_NUM_FORMS").attr("autocomplete", "off");
+ var maxForms = $("#id_" + options.prefix + "-MAX_NUM_FORMS").prop("autocomplete", "off");
// only show the add button if we are allowed to add more items,
// note that max_num = None translates to a blank string.
var showAddButton = maxForms.val() === '' || (maxForms.val()-totalForms.val()) > 0;

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 8bbca21

Please sign in to comment.