Commit f7262126 authored by Dan Flanagan's avatar Dan Flanagan
Browse files

Issue #3296266 by danflanagan8: ach_attach_js D10 compatibility

parent 71449317
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -5,4 +5,4 @@ ach-attach-js:
    - core/drupal
    - core/drupalSettings
    - core/jquery
    - core/jquery.once
    - core/once
+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();
      });
    },
@@ -15,4 +15,4 @@
      });
    },
  };
})(jQuery, Drupal, drupalSettings);
})(jQuery, Drupal, drupalSettings, once);
+1 −2
Original line number Diff line number Diff line
@@ -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