Update Composer, update everything
This commit is contained in:
parent
ea3e94409f
commit
dda5c284b6
19527 changed files with 1135420 additions and 351004 deletions
23
web/modules/contrib/webform/js/webform.imce.js
Normal file
23
web/modules/contrib/webform/js/webform.imce.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* @file
|
||||
* JavaScript behaviors for IMCE.
|
||||
*/
|
||||
|
||||
(function ($, Drupal) {
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Override processUrlInput to place the 'Open File Browser' links after the target element.
|
||||
*
|
||||
* @param {int} i
|
||||
* Element's index.
|
||||
* @param {element} el
|
||||
* A element.
|
||||
*/
|
||||
window.imceInput.processUrlInput = function (i, el) {
|
||||
var button = imceInput.createUrlButton(el.id, el.getAttribute('data-imce-type'));
|
||||
$(button).insertAfter($(el));
|
||||
};
|
||||
|
||||
})(jQuery, Drupal);
|
||||
Reference in a new issue