Fix js error when custom sql query returns no results

This commit is contained in:
Dan Sosedoff
2016-01-20 09:21:31 -06:00
parent d3f12802a3
commit bd207a3551
3 changed files with 8 additions and 3 deletions

View File

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