Use Drupal.dialog call instead of jQuery dialog

Created on 6 February 2023, almost 2 years ago
Updated 19 September 2024, about 2 months ago

In the project I am working on currently there is a lot of use of modal dialogs and they are custom themed. The theming code relies on catching the dialog:aftercreate event raised by the Drupal dialog API.

Because Automated Logout uses the jQuery dialog API directly, this event is not raised and as a result the logout modal does not go through the custom theme code, hence its display and behaviour characteristics are incorrect. (Worse, because of how the theme is set up it is actually invisible, but that's not relevant for this issue.)

The Drupal dialog API is being loaded anyway by the module's libraries.yml, so I think it makes sense to use it to get the benefit of the extra events it makes available.

Patch to follow.

โœจ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom alfaguru

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024