Skip to content
Snippets Groups Projects

Automated Drupal 10 compatibility fixed

Files
7
/*global Drupal, jQuery*/
Drupal.behaviors.euccRocketshipReopenLink = {
attach: function (context, settings) {
(function ($) {
(function ($, once) {
function show_eucc_popup() {
var popup = $('#sliding-popup');
@@ -22,8 +22,7 @@ Drupal.behaviors.euccRocketshipReopenLink = {
}
// Init when the popup has opened
var body = $('body');
body.once('euccRocketshipReopenLink').each(function() {
once('euccRocketshipReopenLink', 'body').forEach(function () {
var links = $('a[href$="#eucc-open"]');
links.click(function (e) {
e.preventDefault();
@@ -36,6 +35,6 @@ Drupal.behaviors.euccRocketshipReopenLink = {
show_eucc_popup();
});
}(jQuery));
}(jQuery, once));
}
};
Loading