From 07881ede2d7a789c8552cbec527db4c7d7fe194b Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Mon, 26 Apr 2021 16:41:39 +0200 Subject: [PATCH] Do not trigger loadMore method immediatly - This avoid to request unwanted resources, ie. the next 10 products of a shop --- app/views/shop/products/_form.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/shop/products/_form.html.haml b/app/views/shop/products/_form.html.haml index a4000aa6ce..cb60087bf5 100644 --- a/app/views/shop/products/_form.html.haml +++ b/app/views/shop/products/_form.html.haml @@ -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