Hide custom query results counter if query didnt return any rows

This commit is contained in:
Dan Sosedoff 2017-11-16 22:21:52 -06:00
parent d65f8eb0f5
commit cf432e32f7
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -265,6 +265,7 @@ function buildTable(results, sortColumn, sortOrder, options) {
if (results.rows.length == 0) { if (results.rows.length == 0) {
$("<tr><td>No records found</tr></tr>").appendTo("#results"); $("<tr><td>No records found</tr></tr>").appendTo("#results");
$("#result-rows-count").html("");
$("#results").addClass("empty"); $("#results").addClass("empty");
return; return;
} }