Update JS code to the new standard of Drupal 10 (Removal of once from JQuery)

Created on 4 September 2023, over 1 year ago
Updated 18 September 2023, over 1 year ago

## Problem
Deprecated message to once-jquery function

## Solution
Update once-jquery function to keep forward to Drupal 10 upgrade.
See:
- https://www.drupal.org/node/3158256
- https://www.drupal.org/project/drupal/issues/3183149

## Issue tracker
https://www.drupal.org/project/social/issues/3385143

## Theme issue tracker
N/A

## How to test
### Social Comment Upload
- [ ] Enable Social Comment Upload
- [ ] Add comment to any content with one or more files
- [ ] After saved, open any attached file

### Social Core - Invite
- [ ] Open any content
- [ ] Open the invite pages: /node/{node-id}/invite/email

### Social Landing Page
- [ ] Enable Social Landing Page
- [ ] Create a Landing Page with one or more Accordion paragraph
- [ ] Open the Landing Page created and open accordions

### Social Post Album
- [ ] Enable Social Post Album
- [ ] Go to the Home page
- [ ] Open any image from Community post

### Social Profile Preview
- [ ] Enable Social Profile Preview
- [ ] Go to the Home page
- [ ] Mouse over to any profile to see the preview

## Definition of done
### Before merge
- [ ] Code/peer review is completed
- [ ] All commit messages are [clear and clean](https://open-social.slite.com/app/docs/DnmermZDIx_0OQ). If applicable a rebase was performed
- [ ] All automated tests are green
- [ ] Functional/manual tests of the acceptance criteria are approved
- [ ] All acceptance criteria were met
- [ ] New features or changes to existing features are covered by tests, either unit (preferably) or behat
- [ ] Update path is tested. New hook_updates should respect update order, right naming convention and consider hook_post_update code
- [ ] Module can be safely uninstalled. Update/implement hook_uninstall and make sure that removed configuration or dependencies are removed/uninstalled
- [ ] This pull request has all required labels (team/type/priority)
- [ ] This pull request has a milestone
- [ ] This pull request has an assignee (if applicable)
- [ ] Any front end changes are tested on all major browsers
- [ ] New UI elements, or changes on UI elements are approved by the design team
- [ ] New features, or feature changes are approved by the product owner

### After merge
- [ ] Code is tested on all branches that it has been cherry-picked
- [ ] Update hook number might need adjustment, make sure they have the correct order
- [ ] The Drupal.org ticket(s) are updated according to this pull request status

## Screenshots
N/A

## Release notes
N/A

## Change Record
N/A

## Translations
N/A

📌 Task
Status

Fixed

Version

11.10

Component

Code (back-end)

Created by

🇧🇷Brazil viniciusrp

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

Comments & Activities

Production build 0.71.5 2024