Skip to content
Snippets Groups Projects
Commit cfdcac8c authored by Bram Driesen's avatar Bram Driesen Committed by Jimmy Henderickx
Browse files

Issue #3254732 by bramdriesen, p-neyens, rohit.rawat619, danielehrenhofer:...

Issue #3254732 by bramdriesen, p-neyens, rohit.rawat619, danielehrenhofer: Facets summary compatibility with views_ajax_history
parent 14ba11b6
No related branches found
No related tags found
No related merge requests found
...@@ -65,6 +65,10 @@ ...@@ -65,6 +65,10 @@
// Helper function to update views output & Ajax facets. // Helper function to update views output & Ajax facets.
var updateFacetsView = function (href, current_dom_id, view_path) { var updateFacetsView = function (href, current_dom_id, view_path) {
// Update url.
window.historyInitiated = true;
window.history.pushState(null, document.title, href);
// Refresh view. // Refresh view.
var views_parameters = Drupal.Views.parseQueryString(href); var views_parameters = Drupal.Views.parseQueryString(href);
var views_arguments = Drupal.Views.parseViewArgs(href, 'search'); var views_arguments = Drupal.Views.parseViewArgs(href, 'search');
...@@ -82,10 +86,6 @@ ...@@ -82,10 +86,6 @@
Drupal.ajax(views_ajax_settings).execute(); Drupal.ajax(views_ajax_settings).execute();
// Update url.
window.historyInitiated = true;
window.history.pushState(null, document.title, href);
// ToDo: Update views+facets with ajax on history back. // ToDo: Update views+facets with ajax on history back.
// For now we will reload the full page. // For now we will reload the full page.
window.addEventListener("popstate", function (e) { window.addEventListener("popstate", function (e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment