diff -u b/core/misc/tabledrag.js b/core/misc/tabledrag.js --- b/core/misc/tabledrag.js +++ b/core/misc/tabledrag.js @@ -433,7 +433,7 @@ self.rowObject.indent(0); window.scrollBy(0, -parseInt(item.offsetHeight, 10)); } - handle.get(0).focus(); // Regain focus after the DOM manipulation. + handle.trigger('focus'); // Regain focus after the DOM manipulation. } break; case 39: // Right arrow. @@ -475,7 +475,7 @@ self.rowObject.indent(0); window.scrollBy(0, parseInt(item.offsetHeight, 10)); } - handle.get(0).focus(); // Regain focus after the DOM manipulation. + handle.trigger('focus'); // Regain focus after the DOM manipulation. } break; } diff -u b/core/modules/block/block.js b/core/modules/block/block.js --- b/core/modules/block/block.js +++ b/core/modules/block/block.js @@ -106,7 +106,7 @@ // Modify empty regions with added or removed fields. checkEmptyRegions(table, row); // Remove focus from selectbox. - select.get(0).trigger('blur'); + select.trigger('blur'); }); }); diff -u b/core/modules/views/views_ui/js/ajax.js b/core/modules/views/views_ui/js/ajax.js --- b/core/modules/views/views_ui/js/ajax.js +++ b/core/modules/views/views_ui/js/ajax.js @@ -16,7 +16,7 @@ Drupal.attachBehaviors($(ajax_popup), ajax.settings); if (response.url) { // Identify the button that was clicked so that .ajaxSubmit() can use it. - // We need to do this for both .click() and .mousedown() since JavaScript + // We need to do this for both click and mousedown events since JavaScript // code might trigger either behavior. var $submit_buttons = $('input[type=submit], button', ajax_body); $submit_buttons.on('click', function(event) { diff -u b/core/modules/views/views_ui/js/views-admin.js b/core/modules/views/views_ui/js/views-admin.js --- b/core/modules/views/views_ui/js/views-admin.js +++ b/core/modules/views/views_ui/js/views-admin.js @@ -588,7 +588,7 @@ // Due to conflicts between Drupal core's AJAX system and the Views AJAX // system, the only way to get this to work seems to be to trigger both the - // .mousedown() and .submit() events. + // mousedown and submit events. this.addGroupButton.trigger('mousedown'); this.addGroupButton.trigger('submit'); event.preventDefault(); @@ -605,9 +605,9 @@ "use strict"; - // For some reason, here we only need to trigger .submit(), unlike for + // For some reason, here we only need to trigger submit event, unlike for // Drupal.viewsUi.rearrangeFilterHandler.prototype.clickAddGroupButton() - // where we had to trigger .mousedown() also. + // where we had to trigger mousedown event also. jQuery('input#' + event.data.buttonId, this.table).trigger('submit'); event.preventDefault(); };