pd_media_manager uses done() instead of then() of Drupal.ajax

Created on 12 January 2023, almost 2 years ago
Updated 30 January 2023, almost 2 years ago

Problem/Motivation

Due to core changes between 9.4.8 and 9.5.1, Drupal.ajax "done()" returns before loaded commands are done executing. Switching to "then()" resolves this problem in Drupal >=9.4 (or earlier).

Proposed resolution

- Replace "done()" with "then()" in pd_media_manager.js and other js files when Drupal.ajax is used

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇨🇭Switzerland pvbergen

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