Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
26
web/modules/contrib/webform/js/webform.admin.dropbutton.js
Normal file
26
web/modules/contrib/webform/js/webform.admin.dropbutton.js
Normal file
|
@ -0,0 +1,26 @@
|
|||
/**
|
||||
* @file
|
||||
* Dropbutton feature.
|
||||
*/
|
||||
|
||||
(function ($, Drupal) {
|
||||
|
||||
'use strict';
|
||||
|
||||
// Make sure that dropButton behavior exists.
|
||||
if (!Drupal.behaviors.dropButton) {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrap Drupal's dropbutton behavior so that the dropbutton widget is only visible after it is initialized.
|
||||
*/
|
||||
var dropButton = Drupal.behaviors.dropButton;
|
||||
Drupal.behaviors.dropButton = {
|
||||
attach: function (context, settings) {
|
||||
dropButton.attach(context, settings);
|
||||
$(context).find('.webform-dropbutton .dropbutton-wrapper').once('webform-dropbutton').css('visibility', 'visible');
|
||||
}
|
||||
};
|
||||
|
||||
})(jQuery, Drupal);
|
Reference in a new issue