X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fimage%2Fjs%2Ftheme.js;fp=web%2Fcore%2Fmodules%2Fimage%2Fjs%2Ftheme.js;h=7b6cecd572f5048ccf32e014ab5de6859eb90fe2;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=cba8f7bbca6b772b34ec9b0f23d01bfb0dce601c;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/modules/image/js/theme.js b/web/core/modules/image/js/theme.js index cba8f7bbc..7b6cecd57 100644 --- a/web/core/modules/image/js/theme.js +++ b/web/core/modules/image/js/theme.js @@ -1,86 +1,29 @@ /** - * @file - * Provides theme functions for image Quick Edit's client-side HTML. - */ +* DO NOT EDIT THIS FILE. +* See the following change record for more information, +* https://www.drupal.org/node/2815083 +* @preserve +**/ (function (Drupal) { - - 'use strict'; - - /** - * Theme function for validation errors of the Image in-place editor. - * - * @param {object} settings - * Settings object used to construct the markup. - * @param {string} settings.errors - * Already escaped HTML representing error messages. - * - * @return {string} - * The corresponding HTML. - */ Drupal.theme.quickeditImageErrors = function (settings) { return '
' + settings.errors + '
'; }; - /** - * Theme function for the dropzone element of the Image module's in-place - * editor. - * - * @param {object} settings - * Settings object used to construct the markup. - * @param {string} settings.state - * State of the upload. - * @param {string} settings.text - * Text to display inline with the dropzone element. - * - * @return {string} - * The corresponding HTML. - */ Drupal.theme.quickeditImageDropzone = function (settings) { - return '
' + - ' ' + - ' ' + settings.text + '' + - '
'; + return '
' + ' ' + (' ' + settings.text + '') + '
'; }; - /** - * Theme function for the toolbar of the Image module's in-place editor. - * - * @param {object} settings - * Settings object used to construct the markup. - * @param {bool} settings.alt_field - * Whether or not the "Alt" field is enabled for this field. - * @param {bool} settings.alt_field_required - * Whether or not the "Alt" field is required for this field. - * @param {string} settings.alt - * The current value for the "Alt" field. - * @param {bool} settings.title_field - * Whether or not the "Title" field is enabled for this field. - * @param {bool} settings.title_field_required - * Whether or not the "Title" field is required for this field. - * @param {string} settings.title - * The current value for the "Title" field. - * - * @return {string} - * The corresponding HTML. - */ Drupal.theme.quickeditImageToolbar = function (settings) { var html = '
'; if (settings.alt_field) { - html += '
' + - ' ' + - ' ' + - '
'; + html += '' + ('
' + ' ' + (' ') + '
'; } if (settings.title_field) { - html += '
' + - ' ' + - ' ' + - '
'; + html += '' + ('
' + ' ' + (' ') + '
'; } html += '
'; return html; }; - -})(Drupal); +})(Drupal); \ No newline at end of file