From ff1da5e9db5aaaa6c4511f167915883d25cbe6d1 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 10 Mar 2017 12:35:21 +0200 Subject: [PATCH] -Empty filters removed --- frontend/web/js/filter.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/web/js/filter.js b/frontend/web/js/filter.js index f91c837..7d60a0f 100644 --- a/frontend/web/js/filter.js +++ b/frontend/web/js/filter.js @@ -72,9 +72,10 @@ function priceRequest(link){ data: {info:filter,category:id}, success: function(result){ if(result=='0'){ - $(link).addClass('disabled-link'); - tag.find('input').prop( "disabled", true ); - $(link).find("span").html('('+result+')'); + $(link).parent().parent().parent().remove(); +// $(link).addClass('disabled-link'); +// tag.find('input').prop( "disabled", true ); +// $(link).find("span").html('('+result+')'); } else { $(link).removeClass('disabled-link'); tag.find('input').prop( "disabled", false ); -- libgit2 0.21.4