Fixed issues causing travis build failures

This commit is contained in:
Nigel Banks 2021-04-05 13:09:07 +01:00
parent 698cbcad8b
commit 1f611a3876
8 changed files with 213 additions and 240 deletions

View file

@ -71,7 +71,8 @@
}
});
/*** Push state on form/pager/facet change.
/**
* Push state on form/pager/facet change.
*/
Drupal.behaviors.islandoraAdvancedSearchViewsAjax = {
attach: function (context, settings) {

View file

@ -18,6 +18,9 @@
}
// Remove Recurse parameter.
delete params[recurse_parameter];
// Remove the page if set as submitting the form should always take
// the user to the first page (facets do the same).
delete params["page"];
return params;
}
@ -93,7 +96,7 @@
// Prevent form submission and push state instead.
//
// Logic server side / client side should match to generate the
// approprirate URL with javascript enabled or disable.
// appropriate URL with javascript enabled or disable.
$form.submit(function (e) {
e.preventDefault();
e.stopPropagation();