Mercurial > hg > isophonics-drupal-site
comparison core/modules/image/js/theme.js @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
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) { | |
9 Drupal.theme.quickeditImageErrors = function (settings) { | |
10 return '<div class="quickedit-image-errors">' + settings.errors + '</div>'; | |
11 }; | |
12 | |
13 Drupal.theme.quickeditImageDropzone = function (settings) { | |
14 return '<div class="quickedit-image-dropzone ' + settings.state + '">' + ' <i class="quickedit-image-icon"></i>' + (' <span class="quickedit-image-text">' + settings.text + '</span>') + '</div>'; | |
15 }; | |
16 | |
17 Drupal.theme.quickeditImageToolbar = function (settings) { | |
18 var html = '<form class="quickedit-image-field-info">'; | |
19 if (settings.alt_field) { | |
20 html += '' + (' <div>' + ' <label for="alt" class="') + (settings.alt_field_required ? 'required' : '') + '">' + Drupal.t('Alternative text') + '</label>' + (' <input type="text" placeholder="' + settings.alt + '" value="' + settings.alt + '" name="alt" ' + (settings.alt_field_required ? 'required' : '') + '/>') + ' </div>'; | |
21 } | |
22 if (settings.title_field) { | |
23 html += '' + (' <div>' + ' <label for="title" class="') + (settings.title_field_required ? 'form-required' : '') + '">' + Drupal.t('Title') + '</label>' + (' <input type="text" placeholder="' + settings.title + '" value="' + settings.title + '" name="title" ' + (settings.title_field_required ? 'required' : '') + '/>') + ' </div>'; | |
24 } | |
25 html += '</form>'; | |
26 | |
27 return html; | |
28 }; | |
29 })(Drupal); |