mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-12 07:03:55 +03:00
Compare commits
4 Commits
cdba1579a0
...
cd20924218
Author | SHA1 | Date | |
---|---|---|---|
|
cd20924218 | ||
|
fb3b57d9ea | ||
|
4e05bf2376 | ||
|
bb48cab871 |
@ -430,10 +430,11 @@ function buildTable(results, sortColumn, sortOrder, options) {
|
||||
if (results.rows.length == 0) {
|
||||
$("#results_header").html("");
|
||||
$("#results_body").html("<tr><td>No records found</td></tr>");
|
||||
if (results.stats)
|
||||
if (results.stats) {
|
||||
$("#result-rows-count").html(results.stats.query_duration_ms + " ms");
|
||||
else
|
||||
} else {
|
||||
$("#result-rows-count").html("");
|
||||
}
|
||||
$("#results").addClass("empty");
|
||||
return;
|
||||
}
|
||||
@ -443,9 +444,8 @@ function buildTable(results, sortColumn, sortOrder, options) {
|
||||
|
||||
results.columns.forEach(function(col) {
|
||||
if (col === sortColumn) {
|
||||
cols += "<th class='table-header-col active' data-name='" + col + "'" + "data-order=" + sortOrder + ">" + col + " " + sortArrow(sortOrder) + "</th>";
|
||||
}
|
||||
else {
|
||||
cols += "<th class='table-header-col active' data-name='" + col + "' data-order=" + sortOrder + ">" + col + " " + sortArrow(sortOrder) + "</th>";
|
||||
} else {
|
||||
cols += "<th class='table-header-col' data-name='" + col + "'>" + col + "</th>";
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user