new version with ajax

This commit is contained in:
rnsrk 2025-01-09 18:27:23 +01:00
parent 27c044f040
commit a0b1c7785e
8 changed files with 415 additions and 128 deletions

View file

@ -138,14 +138,6 @@
e.preventDefault();
e.stopPropagation();
let inputs = $form.serializeArray();
//console.log(inputs);
//inputs = inputs.filter(function(el) {
// return !el.name.match(/terms\[\d+\]\[entity\]/);
//});
//inputs = originalInputs;
//console.log(inputs);
const href = url(inputs, settings.advanced_search_form);
/* digitalutsc added*/
@ -177,7 +169,9 @@
}
});
window.history.pushState(null, document.title, href);
});
}
// Reset should trigger refresh of AJAX Blocks / Views.
$form.find('input[data-drupal-selector = "edit-reset"]').mousedown(function (e) {
@ -192,13 +186,15 @@
// Handle the page summary
$("#ajax-page-summary").hide();
$( document ).ajaxComplete(function( event, request, settings ) {
$("#ajax-page-summary").hide();
//$("#ajax-page-summary").hide();
if (jQuery("#ajax-page-summary").length >0) {
$(".pager__summary").html($("#ajax-page-summary").html());
}
else {
$(".pager__summary").html("");
}
$('.boehler-js-disabled').removeClass('boehler-js-disabled');
});
}
}