Move all files to 2017/

This commit is contained in:
Oliver Davies 2025-09-29 22:25:17 +01:00
parent ac7370f67f
commit 2875863330
15717 changed files with 0 additions and 0 deletions

View file

@ -1,25 +0,0 @@
/**
* @file
* JavaScript behavior to remove destination from contextual links.
*/
(function ($) {
'use strict';
// Bind click event to all .contextual links which are
// dynamically inserted via Ajax.
// @see webform_contextual_links_view_alter()
// @see Drupal.behaviors.contextual
$(document).on('click', '.contextual', function () {
$(this).find('a.webform-contextual').once('webform-contextual').each(function () {
this.href = this.href.split('?')[0];
// Add ?_webform_test={webform} to the current page's URL.
if (/webform\/([^/]+)\/test/.test(this.href)) {
this.href = window.location.pathname + '?_webform_test=' + RegExp.$1;
}
});
});
})(jQuery);