Skip to content
Snippets Groups Projects
Commit e3738100 authored by bjc2265's avatar bjc2265
Browse files

Resolve #3446314 "Drupal 11 compatibility"

parent e515a9ac
Branches
No related tags found
1 merge request!10Resolve #3446314 "Drupal 11 compatibility"
Pipeline #198229 passed with warnings
...@@ -10,6 +10,6 @@ ...@@ -10,6 +10,6 @@
"source": "https://git.drupalcode.org/project/google_cse" "source": "https://git.drupalcode.org/project/google_cse"
}, },
"require": { "require": {
"drupal/core": "^9 || ^10" "drupal/core": "^10|| ^11"
} }
} }
name: Google Programmable Search name: Google Programmable Search
type: module type: module
description: Use Google Programmable Search to search your site and/or any other sites. description: Use Google Programmable Search to search your site and/or any other sites.
core_version_requirement: ^9 || ^10 core_version_requirement: ^10 || ^11
dependencies: dependencies:
- drupal:search - drupal:search
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
var searchInputs = $(`[data-drupal-selector='${query}']`); var searchInputs = $(`[data-drupal-selector='${query}']`);
if (drupalSettings.googlePSE.displayWatermark === 1) { if (drupalSettings.googlePSE.displayWatermark === 1) {
searchInputs.blur(addWatermark); searchInputs.on("blur", addWatermark);
searchInputs.each(function () { searchInputs.each(function () {
var event = {}; var event = {};
event.target = this; event.target = this;
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
}); });
} }
else { else {
searchInputs.blur(removeWatermark); searchInputs.on("blur", removeWatermark);
searchInputs.each(function () { searchInputs.each(function () {
var event = {}; var event = {};
event.target = this; event.target = this;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment