diff options
author | Alex Pott <alex.a.pott@googlemail.com> | 2020-01-28 11:36:14 +0000 |
---|---|---|
committer | Alex Pott <alex.a.pott@googlemail.com> | 2020-01-28 11:36:14 +0000 |
commit | 2dadb738bfd48510db2174323528fe769731c05a (patch) | |
tree | f6319d9bfa9af8b41dc0ca7c187bef1eaf17aee4 /core/misc/dialog/dialog.js | |
parent | 09b78ffb1bc1bb62d21fb3abb85e1349a674597a (diff) | |
download | drupal-2dadb738bfd48510db2174323528fe769731c05a.tar.gz drupal-2dadb738bfd48510db2174323528fe769731c05a.zip |
Issue #3101543 by lauriii, bnjmnm, ravi.shankar: Update core JavaScript dependencies listed in package.json
Diffstat (limited to 'core/misc/dialog/dialog.js')
-rw-r--r-- | core/misc/dialog/dialog.js | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/core/misc/dialog/dialog.js b/core/misc/dialog/dialog.js index 9bd8b554e4e1..979fdeff67de 100644 --- a/core/misc/dialog/dialog.js +++ b/core/misc/dialog/dialog.js @@ -9,7 +9,6 @@ drupalSettings.dialog = { autoOpen: true, dialogClass: '', - buttonClass: 'button', buttonPrimaryClass: 'button--primary', close: function close(event) { @@ -19,7 +18,7 @@ }; Drupal.dialog = function (element, options) { - var undef = void 0; + var undef; var $element = $(element); var dialog = { open: false, @@ -28,7 +27,6 @@ function openDialog(settings) { settings = $.extend({}, drupalSettings.dialog, options, settings); - $(window).trigger('dialog:beforecreate', [dialog, $element, settings]); $element.dialog(settings); dialog.open = true; @@ -44,13 +42,18 @@ } dialog.show = function () { - openDialog({ modal: false }); + openDialog({ + modal: false + }); }; + dialog.showModal = function () { - openDialog({ modal: true }); + openDialog({ + modal: true + }); }; - dialog.close = closeDialog; + dialog.close = closeDialog; return dialog; }; })(jQuery, Drupal, drupalSettings);
\ No newline at end of file |