1/** 2* DO NOT EDIT THIS FILE. 3* See the following change record for more information, 4* https://www.drupal.org/node/2815083 5* @preserve 6**/ 7 8(function ($, Drupal, drupalSettings) { 9 drupalSettings.dialog = { 10 autoOpen: true, 11 dialogClass: '', 12 buttonClass: 'button', 13 buttonPrimaryClass: 'button--primary', 14 close: function close(event) { 15 Drupal.dialog(event.target).close(); 16 Drupal.detachBehaviors(event.target, null, 'unload'); 17 } 18 }; 19 20 Drupal.dialog = function (element, options) { 21 var undef; 22 var $element = $(element); 23 var dialog = { 24 open: false, 25 returnValue: undef 26 }; 27 28 function openDialog(settings) { 29 settings = $.extend({}, drupalSettings.dialog, options, settings); 30 $(window).trigger('dialog:beforecreate', [dialog, $element, settings]); 31 $element.dialog(settings); 32 dialog.open = true; 33 $(window).trigger('dialog:aftercreate', [dialog, $element, settings]); 34 } 35 36 function closeDialog(value) { 37 $(window).trigger('dialog:beforeclose', [dialog, $element]); 38 $element.dialog('close'); 39 dialog.returnValue = value; 40 dialog.open = false; 41 $(window).trigger('dialog:afterclose', [dialog, $element]); 42 } 43 44 dialog.show = function () { 45 openDialog({ 46 modal: false 47 }); 48 }; 49 50 dialog.showModal = function () { 51 openDialog({ 52 modal: true 53 }); 54 }; 55 56 dialog.close = closeDialog; 57 return dialog; 58 }; 59})(jQuery, Drupal, drupalSettings);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.