diff options
author | nod_ <nod_@598310.no-reply.drupal.org> | 2024-06-22 21:44:08 +0200 |
---|---|---|
committer | nod_ <nod_@598310.no-reply.drupal.org> | 2024-06-22 21:44:08 +0200 |
commit | eeaf9c829e8607d3711d72506c733245d29c10a0 (patch) | |
tree | a1cac708fe048a3ad42d8194d287fa2a91cc1c69 /core/misc/dialog | |
parent | 1a487f3b7cb69d2355afacd30220e6c3190797d4 (diff) | |
download | drupal-eeaf9c829e8607d3711d72506c733245d29c10a0.tar.gz drupal-eeaf9c829e8607d3711d72506c733245d29c10a0.zip |
Issue #3440676 by Utkarsh_33, smustgrave, catch, bnjmnm, nod_: Trigger a JavaScript deprecation error for dialogClass in forked dialog.js
Diffstat (limited to 'core/misc/dialog')
-rw-r--r-- | core/misc/dialog/dialog.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/misc/dialog/dialog.js b/core/misc/dialog/dialog.js index 76a0deea25b..dff0faf22a8 100644 --- a/core/misc/dialog/dialog.js +++ b/core/misc/dialog/dialog.js @@ -78,6 +78,13 @@ class DrupalDialogEvent extends Event { function openDialog(settings) { settings = $.extend({}, drupalSettings.dialog, options, settings); + if (settings.dialogClass) { + Drupal.deprecationError({ + message: + 'dialogClass is deprecated in drupal:10.4.x and will be removed from drupal:12.0.0.', + }); + } + // Trigger a global event to allow scripts to bind events to the dialog. const event = new DrupalDialogEvent('beforecreate', dialog, settings); domElement.dispatchEvent(event); |