Skip to content
Snippets Groups Projects
Commit a6143c18 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

Issue #1937924 by droplet: Remove jQuery deprecated function.

parent da693c7a
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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;
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment