Commit ff1da5e9db5aaaa6c4511f167915883d25cbe6d1
1 parent
122b0e50
-Empty filters removed
Showing
1 changed file
with
4 additions
and
3 deletions
Show diff stats
frontend/web/js/filter.js
@@ -72,9 +72,10 @@ function priceRequest(link){ | @@ -72,9 +72,10 @@ function priceRequest(link){ | ||
72 | data: {info:filter,category:id}, | 72 | data: {info:filter,category:id}, |
73 | success: function(result){ | 73 | success: function(result){ |
74 | if(result=='0'){ | 74 | if(result=='0'){ |
75 | - $(link).addClass('disabled-link'); | ||
76 | - tag.find('input').prop( "disabled", true ); | ||
77 | - $(link).find("span").html('('+result+')'); | 75 | + $(link).parent().parent().parent().remove(); |
76 | +// $(link).addClass('disabled-link'); | ||
77 | +// tag.find('input').prop( "disabled", true ); | ||
78 | +// $(link).find("span").html('('+result+')'); | ||
78 | } else { | 79 | } else { |
79 | $(link).removeClass('disabled-link'); | 80 | $(link).removeClass('disabled-link'); |
80 | tag.find('input').prop( "disabled", false ); | 81 | tag.find('input').prop( "disabled", false ); |