SHOW:
|
|
- or go back to the newest paste.
1 | $(function() { | |
2 | $('.productTag').click(function() { | |
3 | $('.productTag').each(function() { | |
4 | $(this).removeClass('active'); | |
5 | - | }).complete(function(data) { |
5 | + | |
6 | - | console.log(data); |
6 | + | |
7 | - | $('div#productList').html(data); |
7 | + | |
8 | url: 'assortiment/filter?title=' + $(this).text() | |
9 | }).done(function(data) { | |
10 | $('#productList').html(data); | |
11 | $(this).addClass('active'); | |
12 | }).fail(function(jqXHR, textStatus) { | |
13 | alert( "Request failed: " + textStatus ); | |
14 | }); | |
15 | }); | |
16 | }); |