Remove jQuery.once from frontend

Created on 22 December 2022, almost 2 years ago
Updated 7 June 2023, over 1 year ago

Problem/Motivation

- A site without jQuery once like a fresh D10 site won't work with current 4.0.0 version

Steps to reproduce

- Install fresh D10, add cshs & field to use this widget with
- Error Uncaught TypeError: $(...).once is not a function appears

Proposed resolution

- The attached patch will fix the build/cshs.js file so that this version can be used for the time being
- The file cshs/frontend/src/cshs.ts at least will need refactoring to remove jquery.once and move it to core/once as in the patch

Remaining tasks

- Refactor cshs/frontend/src/cshs.ts and other necessary files

🐛 Bug report
Status

Closed: duplicate

Version

4.0

Component

Code

Created by

🇫🇮Finland j-vee Turku, Finland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024