123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- /**
- * DO NOT EDIT THIS FILE.
- * See the following change record for more information,
- * https://www.drupal.org/node/2815083
- * @preserve
- **/
- (function ($, Drupal) {
- Drupal.theme.quickeditBackstage = function (settings) {
- var html = '';
- html += '<div id="' + settings.id + '" />';
- return html;
- };
- Drupal.theme.quickeditEntityToolbar = function (settings) {
- var html = '';
- html += '<div id="' + settings.id + '" class="quickedit quickedit-toolbar-container clearfix">';
- html += '<i class="quickedit-toolbar-pointer"></i>';
- html += '<div class="quickedit-toolbar-content">';
- html += '<div class="quickedit-toolbar quickedit-toolbar-entity clearfix icon icon-pencil">';
- html += '<div class="quickedit-toolbar-label" />';
- html += '</div>';
- html += '<div class="quickedit-toolbar quickedit-toolbar-field clearfix" />';
- html += '</div><div class="quickedit-toolbar-lining"></div></div>';
- return html;
- };
- Drupal.theme.quickeditEntityToolbarLabel = function (settings) {
- return '<span class="field">' + Drupal.checkPlain(settings.fieldLabel) + '</span>' + Drupal.checkPlain(settings.entityLabel);
- };
- Drupal.theme.quickeditEntityToolbarFence = function () {
- return '<div id="quickedit-toolbar-fence" />';
- };
- Drupal.theme.quickeditFieldToolbar = function (settings) {
- return '<div id="' + settings.id + '" />';
- };
- Drupal.theme.quickeditToolgroup = function (settings) {
- var classes = settings.classes || [];
- classes.unshift('quickedit-toolgroup');
- var html = '';
- html += '<div class="' + classes.join(' ') + '"';
- if (settings.id) {
- html += ' id="' + settings.id + '"';
- }
- html += '>';
- html += Drupal.theme('quickeditButtons', { buttons: settings.buttons });
- html += '</div>';
- return html;
- };
- Drupal.theme.quickeditButtons = function (settings) {
- var html = '';
- for (var i = 0; i < settings.buttons.length; i++) {
- var button = settings.buttons[i];
- if (!button.hasOwnProperty('type')) {
- button.type = 'button';
- }
- var attributes = [];
- var attrMap = settings.buttons[i].attributes || {};
- for (var attr in attrMap) {
- if (attrMap.hasOwnProperty(attr)) {
- attributes.push(attr + (attrMap[attr] ? '="' + attrMap[attr] + '"' : ''));
- }
- }
- html += '<button type="' + button.type + '" class="' + button.classes + '"' + (' ' + attributes.join(' ') + '>');
- html += button.label;
- html += '</button>';
- }
- return html;
- };
- Drupal.theme.quickeditFormContainer = function (settings) {
- var html = '';
- html += '<div id="' + settings.id + '" class="quickedit-form-container">';
- html += ' <div class="quickedit-form">';
- html += ' <div class="placeholder">';
- html += settings.loadingMsg;
- html += ' </div>';
- html += ' </div>';
- html += '</div>';
- return html;
- };
- })(jQuery, Drupal);
|