Commit 60853dc5cd94da78154690965aa3b7e70ce84b6f
1 parent
c4ad7b14
Exists in
master
and in
5 other branches
New software search clears old filters
Signed-off-by: Luciano Prestes <lucianopcbr@gmail.com> Signed-off-by: Parley Martins <parley@outlook.com>
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
public/software-catalog.js
@@ -88,7 +88,12 @@ | @@ -88,7 +88,12 @@ | ||
88 | jQuery(".catalog-remove-item").click(remote_catalog_item); | 88 | jQuery(".catalog-remove-item").click(remote_catalog_item); |
89 | } | 89 | } |
90 | 90 | ||
91 | + function clear_filters() { | ||
92 | + jQuery("#filter").val(""); | ||
93 | + } | ||
94 | + | ||
91 | jQuery(document).ready(function(){ | 95 | jQuery(document).ready(function(){ |
96 | + clear_filters(); | ||
92 | set_autocomplate(); | 97 | set_autocomplate(); |
93 | set_events(); | 98 | set_events(); |
94 | }); | 99 | }); |