updated core to 8.6.1 via composer
This commit is contained in:
@@ -23,15 +23,7 @@
|
||||
var $element = $(element);
|
||||
var dialog = {
|
||||
open: false,
|
||||
returnValue: undef,
|
||||
show: function show() {
|
||||
openDialog({ modal: false });
|
||||
},
|
||||
showModal: function showModal() {
|
||||
openDialog({ modal: true });
|
||||
},
|
||||
|
||||
close: closeDialog
|
||||
returnValue: undef
|
||||
};
|
||||
|
||||
function openDialog(settings) {
|
||||
@@ -51,6 +43,14 @@
|
||||
$(window).trigger('dialog:afterclose', [dialog, $element]);
|
||||
}
|
||||
|
||||
dialog.show = function () {
|
||||
openDialog({ modal: false });
|
||||
};
|
||||
dialog.showModal = function () {
|
||||
openDialog({ modal: true });
|
||||
};
|
||||
dialog.close = closeDialog;
|
||||
|
||||
return dialog;
|
||||
};
|
||||
})(jQuery, Drupal, drupalSettings);
|
||||
Reference in New Issue
Block a user