Move all files to 2017/
This commit is contained in:
parent
ac7370f67f
commit
2875863330
15717 changed files with 0 additions and 0 deletions
23
2017/web/modules/contrib/webform/js/webform.imce.js
Normal file
23
2017/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