Skip to content
Snippets Groups Projects
Commit 774d0b63 authored by Aaron Ingles's avatar Aaron Ingles Committed by Matthew Grasmick
Browse files

Issue #3396369 by inglesaaron: Javasript issue in D10 using deprecated once

parent b9e7be56
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
* Attaches behaviors for the Achievements module.
*/
(function ($) {
(function ($, once) {
Drupal.behaviors.achievements = {
attach: function (context, settings) {
......@@ -11,7 +11,7 @@
var height = 104;
var margin = 10;
var timeout;
var notifications = $('.achievement-notification', context).once('processed').dialog({
var notifications = $(once('processed', '.achievement-notification', context)).dialog({
dialogClass: 'achievement-notification-dialog',
autoOpen: false,
show: 'fade',
......@@ -102,4 +102,4 @@
}
};
})(jQuery);
})(jQuery, once);
......@@ -6,5 +6,7 @@ achievements:
js:
achievements.js: {}
dependencies:
- core/jquery
- core/once
- jquery_ui_dialog/dialog
- jquery_ui_effects/fade
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