Skip to content

Commit

Permalink
allow use with filtered navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
philippeaellig committed May 31, 2021
1 parent 8c3c511 commit b7980d5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.idea/*
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "landofcoder/module-ajaxscroll",
"description": "Freely Scroll down & See what page of the catalog they're on, Automatically loading, Similar technique as seen on Twitter, Facebook",
"require": {
"php": "^7.4",
"landofcoder/module-all" : "1.*"
},
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion view/frontend/templates/scripts.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ var IASHistoryExtension = function (options) {
// always take the last matching item
var prev_url = jQuery(this.prevSelector, container).last().attr('href');
if(typeof(prev_url) != 'undefined') {
prev_url += '&ajaxscroll=1';
prev_url += '?ajaxscroll=1';
} else {
prev_url = '';
}
Expand Down
4 changes: 2 additions & 2 deletions view/frontend/web/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ define([
// always take the last matching item
var next_url = $(this.nextSelector, container).last().attr('href');
if(typeof(next_url) != 'undefined') {
next_url += '&ajaxscroll=1';
next_url += '?ajaxscroll=1';
} else {
next_url = '';
}
Expand Down Expand Up @@ -817,7 +817,7 @@ var IASHistoryExtension = function (options) {
// always take the last matching item
var prev_url = jQuery(this.prevSelector, container).last().attr('href');
if(typeof(prev_url) != 'undefined') {
prev_url += '&ajaxscroll=1';
prev_url += '?ajaxscroll=1';
} else {
prev_url = '';
}
Expand Down

0 comments on commit b7980d5

Please sign in to comment.