Staggered loading of products in BPE

This commit is contained in:
Rob H
2014-08-01 13:36:29 +10:00
parent b9f49344b4
commit 27e992ebcb
4 changed files with 49 additions and 50 deletions

View File

@@ -51,10 +51,10 @@
%h4 Loading Products...
%div.sixteen.columns.alpha{ 'ng-show' => '!loading && products.length == 0' }
%h4{ :style => 'color:red;' } No matching products found.
%div.sixteen.columns.alpha{ 'ng-show' => '!loading && products.length == 500' }
%div.sixteen.columns.alpha{ 'ng-show' => '!loading && products.length >= 500' }
%h6 Search returned too many products to display (500+), please apply more search filters to reduce the number of matching products
%div.sixteen.columns.alpha{ 'ng-hide' => 'loading || products.length == 500 || products.length == 0' }
%div.quick_search{ :class => "five columns omega" }
%div.sixteen.columns.alpha{ 'ng-hide' => 'loading || products.length >= 500 || products.length == 0' }
%div.quick_search{ :class => "five columns alpha" }
%input.search{ :class => "four columns alpha", 'ng-model' => 'query', :name => "quick_filter", :type => 'text', 'placeholder' => 'Quick Search' }
%div{ :class => "eight columns" }  
%div{ :class => "three columns omega" }