Merge pull request #322 from sosedoff/fix-custom-results-rows

Hide custom query results counter if query didn't return any rows
This commit is contained in:
Dan Sosedoff 2017-11-16 23:07:24 -06:00 committed by GitHub
commit cdb74c6a19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {
$("<tr><td>No records found</tr></tr>").appendTo("#results");
$("#result-rows-count").html("");
$("#results").addClass("empty");
return;
}