Commit a6143c18 authored by Dries's avatar Dries

Issue #1937924 by droplet: Remove jQuery deprecated function.

parent da693c7a
......@@ -50,7 +50,7 @@ Drupal.behaviors.formUpdated = {
$(context)
// Since context could be an input element itself, it's added back to
// the jQuery object and filtered again.
.find(':input').andSelf().filter(':input')
.find(':input').addBack().filter(':input')
// To prevent duplicate events, the handlers are first removed and then
// (re-)added.
.unbind(events).bind(events, function () {
......
......@@ -21,7 +21,7 @@ Drupal.tableSelect = function () {
var strings = { 'selectAll': Drupal.t('Select all rows in this table'), 'selectNone': Drupal.t('Deselect all rows in this table') };
var updateSelectAll = function (state) {
// Update table's select-all checkbox (and sticky header's if available).
$table.prev('table.sticky-header').andSelf().find('th.select-all input[type="checkbox"]').each(function() {
$table.prev('table.sticky-header').addBack().find('th.select-all input[type="checkbox"]').each(function() {
$(this).attr('title', state ? strings.selectNone : strings.selectAll);
this.checked = state;
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment