Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
39
web/modules/contrib/webform/js/webform.off-canvas.js
Normal file
39
web/modules/contrib/webform/js/webform.off-canvas.js
Normal file
|
@ -0,0 +1,39 @@
|
|||
/**
|
||||
* @file
|
||||
* JavaScript behaviors for webform off-canvas dialogs.
|
||||
*
|
||||
* @see misc/dialog/off-canvas.js
|
||||
*/
|
||||
|
||||
(function ($, Drupal) {
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Attaches webform off-canvas behaviors.
|
||||
*
|
||||
* @type {Drupal~behavior}
|
||||
*
|
||||
* @prop {Drupal~behaviorAttach} attach
|
||||
* Attaches event listeners to window for off-canvas dialogs.
|
||||
*/
|
||||
Drupal.behaviors.webformOffCanvasEvents = {
|
||||
attach: function () {
|
||||
// Resize seven.theme tabs when off-canvas dialog opened and closed.
|
||||
// @see core/themes/seven/js/nav-tabs.js
|
||||
$(window).once('webform-off-canvas').on({
|
||||
'dialog:aftercreate': function (event, dialog, $element, settings) {
|
||||
if (Drupal.offCanvas.isOffCanvas($element)) {
|
||||
$(window).trigger('resize.tabs');
|
||||
}
|
||||
},
|
||||
'dialog:afterclose': function (event, dialog, $element, settings) {
|
||||
if (Drupal.offCanvas.isOffCanvas($element)) {
|
||||
$(window).trigger('resize.tabs');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
})(jQuery, Drupal);
|
Reference in a new issue