Webform module and config export
This commit is contained in:
parent
3e6a5cbed2
commit
0e15467384
1040 changed files with 117682 additions and 0 deletions
26
web/modules/contrib/webform/js/webform.element.multiple.js
Normal file
26
web/modules/contrib/webform/js/webform.element.multiple.js
Normal 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);
|
Reference in a new issue