Commit d5fa085c authored by Sascha Grossenbacher's avatar Sascha Grossenbacher Committed by Ivica Puljic
Browse files

Issue #3295399 by Berdir: Drupal 10 compatibility

parent 42d76f31
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2,4 +2,4 @@ name: BS Lib
description: Component orieneted Bootstrap 4 library.
type: module
package: Bootstrap
core_version_requirement: ^8.8.0 || ^9
core_version_requirement: ^9.2 || ^10
+2 −1
Original line number Diff line number Diff line
@@ -154,7 +154,7 @@ anchor_scroll:
  dependencies:
    - core/drupalSettings
    - core/jquery
    - core/jquery.once
    - core/once

scroll_to_top:
  css:
@@ -164,3 +164,4 @@ scroll_to_top:
    js/scroll-to-top.js: {}
  dependencies:
    - core/jquery
    - core/once
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
  "license": "GPL-2.0+",
  "minimum-stability": "dev",
  "require": {
    "drupal/core": "^8.7.7 || ^9"
    "drupal/core": "^9.2 || ^10"
  },
  "extra": {
    "drush": {
+3 −3
Original line number Diff line number Diff line
@@ -204,12 +204,12 @@
        excludeLinks += ':not(' + drupalSettings.bs_lib.anchor_scroll.exclude_links[i] + ')';
      }

      $('a[href^="#"]' + excludeLinks, context).once('bs-lib-anchor-smooth-scroll').click(function (e) {
      $(once('bs-lib-anchor-smooth-scroll', 'a[href^="#"]' + excludeLinks, context)).click(function (e) {
        BSLib.processClick(e, this);
      });

      // Usefull for Drupal menu links because you need to use / for them.
      $('a[href^="/#"]' + excludeLinks, context).once('bs-lib-anchor-smooth-scroll').click(function (e) {
      // Useful for Drupal menu links because you need to use / for them.
      $(once('bs-lib-anchor-smooth-scroll', 'a[href^="/#"]' + excludeLinks, context)).click(function (e) {
        BSLib.processClick(e, this);
      });
    }
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@
        $html = $('html'),
        $body = $('body');

      $('.bs-lib-scroll-to-top', context).once('bs-lib-scroll-to-top').each(function () {
      $(once('bs-lib-scroll-to-top', '.bs-lib-scroll-to-top', context)).each(function () {
        var $this = $(this),
          offset = $this.data('offset'),
          offsetOpacity = $this.data('offset_opacity'),