Skip to content
Snippets Groups Projects
Commit 2af2ba6a authored by Rafael Tomita's avatar Rafael Tomita Committed by Sophie Shanahan-Kluth
Browse files

Issue #3362574 by zHelmet, dineshkumarbollu, _pratik_, zoiosilva, marcoliver:...

Issue #3362574 by zHelmet, dineshkumarbollu, _pratik_, zoiosilva, marcoliver: Drupal 10 compatibility
parent 84adeee1
No related branches found
No related tags found
1 merge request!2Issue #3362574: Drupal 10 compatibility
......@@ -79,10 +79,12 @@
// If there is a skip link, attach the banner after it.
if ($skipLink.length > 0) {
$skipLink.once().after($messageBanner);
$(once('skipLink', $skipLink)).after($messageBanner);
}
else {
$messageBanner.once().prependTo($('body', context));
$(once('messageBanner', 'body', context)).each(function() {
$messageBanner.prependTo($('body', context))
});
}
},
......
name: Message Banner
description: Display a message banner to site visitors.
package: User interface
php: 7.0
type: module
core_version_requirement: ^8 || ^9
core: 8.x
core_version_requirement: ^8.8 || ^9 || ^10
configure: message_banner.settings
......@@ -9,5 +9,5 @@ message_banner:
dependencies:
- core/drupal
- core/jquery
- core/jquery.once
- core/once
- core/drupalSettings
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