Problem/Motivation

Drupal core does not offer jquery.once anymore since Drupal 10. It was deprecated and a replacement was offered in D9.2. See https://www.drupal.org/node/3158256.

Steps to reproduce

Accessing the config form at e.g. /admin/config/content/markdown/commonmark will create a JS error in the console.

Proposed resolution

Replace jquery.once usage with core/once usage.

Remaining tasks

Review patch, commit.

User interface changes

None.

API changes

None.

Data model changes

None.

CommentFileSizeAuthor
#2 3399837-jquery.once-still-used-2.patch1.61 KBkekkis

Issue fork markdown-3399837

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

kekkis created an issue. See original summary.

kekkis’s picture

Assigned: kekkis » Unassigned
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new1.61 KB
kekkis’s picture

idebr’s picture

Status: Needs review » Reviewed & tested by the community

Patch works as expected, thanks!

joelpittet’s picture

Status: Reviewed & tested by the community » Fixed

Thank you both and sorry for the delay, I just spotted this today.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.