Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / misc / dialog / dialog.js
index f25c0683e34e9e9ee0ceb943284a353687cd928a..9bd8b554e4e1e590fcf46623779be18f03fd0207 100644 (file)
     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) {
       $(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