Commit 91136395 authored by Ivan Duarte's avatar Ivan Duarte Committed by Romain Jarraud
Browse files

Issue #3256597 by jidrone, Renrhaf, lhridley, jcnventura, ressa, adriancid:...

Issue #3256597 by jidrone, Renrhaf, lhridley, jcnventura, ressa, adriancid: Replace deprecated library core/jquery.once with core/once per D.O. Issue #3158256
parent a466bdab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2,6 +2,6 @@ name: Admin Toolbar
description: Provides an improved drop-down menu interface to the site Toolbar.
package: Administration
type: module
core_version_requirement: ^8.8.0 || ^9
core_version_requirement: ^9.2 || ^10
dependencies:
  - drupal:toolbar
+1 −3
Original line number Diff line number Diff line
name: Admin Toolbar Links Access Filter
description: Provides a workaround for the common problem that users with 'Use the administration pages and help' permission see menu links they don't have access permission for. Once the issue <a href='https://www.drupal.org/node/296693'>https://www.drupal.org/node/296693</a> be solved, this module will be deprecated.
package: Administration

type: module
core_version_requirement: ^8.8.0 || ^9.0

core_version_requirement: ^9.2 || ^10
dependencies:
  - admin_toolbar:admin_toolbar
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ name: Admin Toolbar Search
description: Provides search of Admin Toolbar items.
package: Administration
type: module
core_version_requirement: ^8.8.0 || ^9.0
core_version_requirement: ^9.2 || ^10
configure: admin_toolbar_search.settings
dependencies:
  - admin_toolbar:admin_toolbar_tools
+1 −1
Original line number Diff line number Diff line
@@ -7,5 +7,5 @@ search:
  dependencies:
    - core/jquery
    - core/drupal
    - core/jquery.once
    - core/once
    - core/drupal.autocomplete
+2 −1
Original line number Diff line number Diff line
@@ -19,7 +19,8 @@

      var $self = this;

      $('#toolbar-bar', context).once('admin-toolbar-search').each(function () {
      const elements = once('admin-toolbar-search', '#toolbar-bar', context);
      $(elements).each(function () {
        $self.links = [];

        var $searchTab = $(this).find('#admin-toolbar-search-tab')
Loading