updated to use drupal once function instead of jquery once
This commit is contained in:
parent
469bd8005d
commit
4c8c26f4b2
5 changed files with 12 additions and 11 deletions
|
|
@ -100,7 +100,7 @@
|
|||
Drupal.behaviors.advanced_search_form = {
|
||||
attach: function (context, settings) {
|
||||
if (settings.advanced_search_form.id !== 'undefined') {
|
||||
const $form = $('form#' + settings.advanced_search_form.id).once();
|
||||
const $form = $(once('search-form', 'form#' + settings.advanced_search_form.id));
|
||||
if ($form.length > 0) {
|
||||
window.addEventListener("pushstate", function (e) {
|
||||
$form.attr('action', window.location.pathname + window.location.search);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue