From 60853dc5cd94da78154690965aa3b7e70ce84b6f Mon Sep 17 00:00:00 2001 From: Luciano Prestes Cavalcanti Date: Wed, 3 Dec 2014 10:03:27 -0200 Subject: [PATCH] New software search clears old filters --- public/software-catalog.js | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/public/software-catalog.js b/public/software-catalog.js index 5454fd7..8e2652b 100644 --- a/public/software-catalog.js +++ b/public/software-catalog.js @@ -88,7 +88,12 @@ jQuery(".catalog-remove-item").click(remote_catalog_item); } + function clear_filters() { + jQuery("#filter").val(""); + } + jQuery(document).ready(function(){ + clear_filters(); set_autocomplate(); set_events(); }); -- libgit2 0.21.2