Skip to content

Commit

Permalink
- Updated jQuery IAS - Fixed previous button selector. - Added previo…
Browse files Browse the repository at this point in the history
…us feature configuration.
  • Loading branch information
damian-pastorini committed Mar 21, 2016
1 parent c244876 commit 4f67493
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1,412 deletions.
4 changes: 3 additions & 1 deletion app/code/community/Strategery/Infinitescroll/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
<selectors>
<content>.category-products</content>
<next>.next</next>
<previous>.previous</previous>
<items_grid>.products-grid</items_grid>
<items_list>.products-list</items_list>
<loading>.category-products</loading>
Expand All @@ -89,7 +90,7 @@
</selectors>
<design>
<loading_img><![CDATA[]]></loading_img>
<loading_text><![CDATA[<em>Loading the next set of posts...</em>]]></loading_text>
<loading_text><![CDATA[<em>Loading posts...</em>]]></loading_text>
<done_text><![CDATA[<em>Congratulations, you've reached the end of the internet.</em>]]></done_text>
<hide_toolbar>0</hide_toolbar>
<hide_pagination>1</hide_pagination>
Expand All @@ -98,6 +99,7 @@
<extra_scroll_px>150</extra_scroll_px>
<buffer_px>150</buffer_px>
<load_more_text>Load more items</load_more_text>
<load_more_text_prev>Load previous items</load_more_text_prev>
<load_more_threshold>5</load_more_threshold>
</design>
<memory>
Expand Down
20 changes: 18 additions & 2 deletions app/code/community/Strategery/Infinitescroll/etc/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,25 @@
<show_in_store>1</show_in_store>
<comment>Selector for the link to the next page.</comment>
</next>
<previous>
<label>Previous</label>
<sort_order>4</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Selector for the link to the previous page.</comment>
</previous>
<items_grid>
<label>Items (grid mode)</label>
<sort_order>4</sort_order>
<sort_order>5</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment>Selector for all items you'll retrieve.</comment>
</items_grid>
<items_list>
<label>Items (list mode)</label>
<sort_order>5</sort_order>
<sort_order>6</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
Expand Down Expand Up @@ -289,6 +297,14 @@
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</load_more_text>
<load_more_text_prev>
<label>Load Previous button text</label>
<frontend_type>text</frontend_type>
<sort_order>10</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</load_more_text_prev>
</fields>
</design>
<memory translate="label">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
delay: 600,
negativeMargin: <?php echo (int) $helper->getConfigData('design/buffer_px') ?>,
history: {
prev: '.prev'
prev: '<?php echo $helper->getConfigData('selectors/previous') ?>'
},
noneleft: {
text: '<?php echo $helper->jsQuoteEscape($this->__($helper->getConfigData('design/done_text'))) ?>',
Expand All @@ -100,7 +100,7 @@
trigger: {
text: '<?php echo $helper->jsQuoteEscape($this->__($helper->getConfigData('design/load_more_text'))) ?>',
html: '<div class="ias-trigger ias-trigger-next" style="text-align: center; cursor: pointer;"><a>{text}</a></div>',
textPrev: '<?php echo $helper->jsQuoteEscape($this->__($helper->getConfigData('design/load_more_text'))) ?>',
textPrev: '<?php echo $helper->jsQuoteEscape($this->__($helper->getConfigData('design/load_more_text_prev'))) ?>',
htmlPrev: '<div class="ias-trigger ias-trigger-prev" style="text-align: center; cursor: pointer;"><a>{text}</a></div>',
offset: <?php echo (int) $helper->getConfigData('design/load_more_threshold') ?>
}
Expand Down
Loading

0 comments on commit 4f67493

Please sign in to comment.