X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Feditor%2Fjs%2Feditor.dialog.js;fp=web%2Fcore%2Fmodules%2Feditor%2Fjs%2Feditor.dialog.js;h=1c6412ceec80b4d5504d51c8e159903b3d2cdba1;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=3bf6120c7af638d0d61670d609b1c54193c0f064;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/modules/editor/js/editor.dialog.js b/web/core/modules/editor/js/editor.dialog.js index 3bf6120c7..1c6412cee 100644 --- a/web/core/modules/editor/js/editor.dialog.js +++ b/web/core/modules/editor/js/editor.dialog.js @@ -1,34 +1,12 @@ /** - * @file - * AJAX commands used by Editor module. - */ +* DO NOT EDIT THIS FILE. +* See the following change record for more information, +* https://www.drupal.org/node/2815083 +* @preserve +**/ (function ($, Drupal) { - - 'use strict'; - - /** - * Command to save the contents of an editor-provided modal. - * - * This command does not close the open modal. It should be followed by a - * call to `Drupal.AjaxCommands.prototype.closeDialog`. Editors that are - * integrated with dialogs must independently listen for an - * `editor:dialogsave` event to save the changes into the contents of their - * interface. - * - * @param {Drupal.Ajax} [ajax] - * The Drupal.Ajax object. - * @param {object} response - * The server response from the ajax request. - * @param {Array} response.values - * The values that were saved. - * @param {number} [status] - * The status code from the ajax request. - * - * @fires event:editor:dialogsave - */ Drupal.AjaxCommands.prototype.editorDialogSave = function (ajax, response, status) { $(window).trigger('editor:dialogsave', [response.values]); }; - -})(jQuery, Drupal); +})(jQuery, Drupal); \ No newline at end of file