diff --git a/parts/static/script.js b/parts/static/script.js index 01322ea..c1a9548 100644 --- a/parts/static/script.js +++ b/parts/static/script.js @@ -178,8 +178,8 @@ function perform_query() { n:$('#notes').is(':checked') }; filter = '0'; + $("#results").find("tr:not(:first)").remove(); // Delete all table rows $.getJSON(rootURL + 'query/' + filter + '/' + query, data, function(data) { - $("#results").find("tr:not(:first)").remove(); // Delete all table rows for(var i = 0; i < data.length; i++) { var newRow = $('