cleaning before merge

This commit is contained in:
Marion Muszynski 2017-04-20 10:50:15 +02:00
parent a7394fdc93
commit 2d5c17ac1e
2 changed files with 0 additions and 22 deletions

View File

@ -17,25 +17,6 @@
</div>
</div>
{/if}
<div class="block_filter">
<div class="content">
<h4 class="open">{l s='Recherche par' mod='filtervp'} taille</h4>
<div class="content_filter">
<ul id="filters">
<li>
<input type="checkbox" name="size" value="1" id="size_1">
<label for="size_1">Grand</label>
</li>
<li>
<input type="checkbox" name="size" value="2" id="size_2">
<label for="size_2">Petit</label>
</li>
</ul>
</div>
</div>
</div>
<script>

View File

@ -64,13 +64,10 @@ $(document).ready(function() {
filter.push($(this).val());
});
$("#product_list").val(0);
console.log(filter);
loading = true;
console.log("{/literal}{$base_dir_ssl}{literal}modules/categoryscroll/ajax.php?c={/literal}{$id_category}{literal}&init=1&f="+ filter +"&p=1");
$.get("{/literal}{$base_dir_ssl}{literal}modules/categoryscroll/ajax.php?c={/literal}{$id_category}{literal}&init=1&f="+ filter +"&p=1", function(loaded) {
loaded = $.parseJSON(loaded)[0];
if(loaded.error == false) {
console.log(loaded);
endreached = loaded.endreached;
$("#product_list").html(loaded.products);
$("#product_list").val(parseInt($("#product_list").val()) + 1);