Commit 4e68d13 1 parent 11c42ee commit 4e68d13 Copy full SHA for 4e68d13
File tree 2 files changed +19
-0
lines changed
app/design/frontend/base/default/template/strategery/infinitescroll
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ .idea
Original file line number Diff line number Diff line change 155
155
156
156
$('<?php echo Mage::getStoreConfig ('infinitescroll/selectors/toolbar ' ) ?> ').<?php echo $ helper ->getConfigData ('design/hide_toolbar ' ) ? 'hide ' : 'show ' ?> ();
157
157
158
+ // custom fix for url protocol issue in jquery ias library:
159
+ window.ias.getNextUrl = function(container) {
160
+ if (!container) {
161
+ container = window.ias.$container;
162
+ }
163
+ // always take the last matching item + fix to be protocol relative
164
+ var nexturl = $(window.ias.nextSelector, container).last().attr('href');
165
+ if(typeof nexturl !== "undefined") {
166
+ if (window.location.protocol == 'https:') {
167
+ nexturl = nexturl.replace('http:', window.location.protocol);
168
+ } else {
169
+ nexturl = nexturl.replace('https:', window.location.protocol);
170
+ }
171
+ }
172
+ return nexturl;
173
+ };
174
+ // custom fix for url protocol issue in jquery ias library.
175
+
158
176
if(windowLoadedFlag){
159
177
$(window).load();
160
178
}
You can’t perform that action at this time.
0 commit comments