Do not trigger loadMore method immediatly

- This avoid to request unwanted resources, ie. the next 10 products of a shop
This commit is contained in:
Jean-Baptiste Bellet
2021-04-26 16:41:39 +02:00
parent cdbcbf4214
commit 07881ede2d

View File

@@ -9,7 +9,7 @@
.medium-12.large-9.columns.full
= render partial: "shop/products/search_feedback"
%div.pad-top{ "infinite-scroll" => "loadMore()", "infinite-scroll-distance" => "1", "infinite-scroll-disabled" => 'Products.loading' }
%div.pad-top{ "infinite-scroll" => "loadMore()", "infinite-scroll-distance" => "1", "infinite-scroll-disabled" => 'Products.loading', "infinite-scroll-immediate-check": "false" }
%product.animate-repeat{"ng-controller" => "ProductNodeCtrl", "ng-repeat" => "product in Products.products track by product.id", "id" => "product-{{ product.id }}"}
= render "shop/products/summary"
.shop-variants