fix pagination for products on category view
This commit is contained in:
parent
f82b651a30
commit
d71a45d198
|
|
@ -21,8 +21,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="caption">
|
<div class="caption">
|
||||||
<h6 class="regular"><%= link_to(cat.name, category_path(cat)) %></h6>
|
<h6 class="regular"><%= link_to(cat.name, category_path(cat)) %></h6>
|
||||||
</div><!-- end caption -->
|
</div>
|
||||||
</div><!-- end thumbnail -->
|
<!-- end caption -->
|
||||||
|
</div>
|
||||||
|
<!-- end thumbnail -->
|
||||||
</div>
|
</div>
|
||||||
<% row += 1
|
<% row += 1
|
||||||
if row == 4
|
if row == 4
|
||||||
|
|
@ -42,12 +44,12 @@
|
||||||
<div id="products_list">
|
<div id="products_list">
|
||||||
<%= render '/product/partials/products_thumbnails' %>
|
<%= render '/product/partials/products_thumbnails' %>
|
||||||
<div>
|
<div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function() {
|
$(document).ready(function () {
|
||||||
$(".productQuickView").on('hidden.bs.modal', function () {
|
$(".productQuickView").on('hidden.bs.modal', function () {
|
||||||
$(this).data('bs.modal', null);
|
$(this).data('bs.modal', null);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
$("#products_list").html("<%= escape_javascript(render('/product/partials/products_thumbnails')) %>");
|
||||||
Loading…
Reference in New Issue