Mercurial > hg > isophonics-drupal-site
view core/modules/editor/js/editor.dialog.es6.js @ 13:5fb285c0d0e3
Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've
been lucky to get away with this so far, as we don't support self-registration
which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5
was vulnerable to.
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:33:26 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
line wrap: on
line source
/** * @file * AJAX commands used by Editor module. */ (function ($, Drupal) { /** * 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));