Loading ach_attach_js.info.yml +1 −2 Original line number Diff line number Diff line Loading @@ -2,5 +2,4 @@ name: ACH Attach JS type: module description: 'Provides library for calling Drupal.attachBehaviors on content added from Acquia Content Hub by Acquia Lift.' package: Acquia core: 8.x core_version_requirement: ^8 || ^9 core_version_requirement: ^9.2 || ^10 ach_attach_js.libraries.yml +1 −1 Original line number Diff line number Diff line Loading @@ -5,4 +5,4 @@ ach-attach-js: - core/drupal - core/drupalSettings - core/jquery - core/jquery.once - core/once js/ach-attach-js.js +3 −3 Original line number Diff line number Diff line (function ($, Drupal, drupalSettings) { (function ($, Drupal, drupalSettings, once) { Drupal.behaviors.achAttachJs = { attach: function (context, settings) { $('body').once('ach-attach-js').each(function() { $(once('ach-attach-js', 'body')).each(function() { Drupal.behaviors.achAttachJs.addLiftEventListeners(); }); }, Loading @@ -15,4 +15,4 @@ }); }, }; })(jQuery, Drupal, drupalSettings); })(jQuery, Drupal, drupalSettings, once); modules/ach_attach_js_attacher/ach_attach_js_attacher.info.yml +1 −2 Original line number Diff line number Diff line Loading @@ -2,8 +2,7 @@ name: ACH Attach JS Attacher type: module description: 'Attach the ACH Attach JS library to the paths of your choice.' package: Acquia core: 8.x core_version_requirement: ^8 || ^9 core_version_requirement: ^9.2 || ^10 configure: ach_attach_js_attacher.config dependencies: - ach_attach_js:ach_attach_js Loading
ach_attach_js.info.yml +1 −2 Original line number Diff line number Diff line Loading @@ -2,5 +2,4 @@ name: ACH Attach JS type: module description: 'Provides library for calling Drupal.attachBehaviors on content added from Acquia Content Hub by Acquia Lift.' package: Acquia core: 8.x core_version_requirement: ^8 || ^9 core_version_requirement: ^9.2 || ^10
ach_attach_js.libraries.yml +1 −1 Original line number Diff line number Diff line Loading @@ -5,4 +5,4 @@ ach-attach-js: - core/drupal - core/drupalSettings - core/jquery - core/jquery.once - core/once
js/ach-attach-js.js +3 −3 Original line number Diff line number Diff line (function ($, Drupal, drupalSettings) { (function ($, Drupal, drupalSettings, once) { Drupal.behaviors.achAttachJs = { attach: function (context, settings) { $('body').once('ach-attach-js').each(function() { $(once('ach-attach-js', 'body')).each(function() { Drupal.behaviors.achAttachJs.addLiftEventListeners(); }); }, Loading @@ -15,4 +15,4 @@ }); }, }; })(jQuery, Drupal, drupalSettings); })(jQuery, Drupal, drupalSettings, once);
modules/ach_attach_js_attacher/ach_attach_js_attacher.info.yml +1 −2 Original line number Diff line number Diff line Loading @@ -2,8 +2,7 @@ name: ACH Attach JS Attacher type: module description: 'Attach the ACH Attach JS library to the paths of your choice.' package: Acquia core: 8.x core_version_requirement: ^8 || ^9 core_version_requirement: ^9.2 || ^10 configure: ach_attach_js_attacher.config dependencies: - ach_attach_js:ach_attach_js