Webform module and config export

This commit is contained in:
Rob Davies 2017-03-16 15:29:07 +00:00
parent 3e6a5cbed2
commit 0e15467384
1040 changed files with 117682 additions and 0 deletions

View file

@ -0,0 +1,26 @@
/**
* @file
* Javascript behaviors for message element integration.
*/
(function ($, Drupal) {
'use strict';
/**
* Move show weight to after the table.
*
* @type {Drupal~behavior}
*/
Drupal.behaviors.webformMultiple = {
attach: function (context, settings) {
for (var base in settings.tableDrag) {
var $tableDrag = $(context).find('#' + base);
var $toggleWeight = $tableDrag.parent().find('.tabledrag-toggle-weight');
$toggleWeight.addClass('webform-multiple-tabledrag-toggle-weight');
$tableDrag.after($toggleWeight);
}
}
};
})(jQuery, Drupal);