From 2dadb738bfd48510db2174323528fe769731c05a Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Tue, 28 Jan 2020 11:36:14 +0000 Subject: Issue #3101543 by lauriii, bnjmnm, ravi.shankar: Update core JavaScript dependencies listed in package.json --- core/misc/dialog/dialog.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'core/misc/dialog/dialog.js') diff --git a/core/misc/dialog/dialog.js b/core/misc/dialog/dialog.js index 9bd8b554e4e..979fdeff67d 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 -- cgit v1.2.3