projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website]
/
web
/
core
/
misc
/
dialog
/
dialog.js
diff --git
a/web/core/misc/dialog/dialog.js
b/web/core/misc/dialog/dialog.js
index f25c0683e34e9e9ee0ceb943284a353687cd928a..9bd8b554e4e1e590fcf46623779be18f03fd0207 100644
(file)
--- a/
web/core/misc/dialog/dialog.js
+++ b/
web/core/misc/dialog/dialog.js
@@
-23,15
+23,7
@@
var $element = $(element);
var dialog = {
open: false,
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) {
};
function openDialog(settings) {
@@
-51,6
+43,14
@@
$(window).trigger('dialog:afterclose', [dialog, $element]);
}
$(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);
\ No newline at end of file
return dialog;
};
})(jQuery, Drupal, drupalSettings);
\ No newline at end of file