Compare commits

...

4 Commits

Author SHA1 Message Date
Oleg Samsonov
cd20924218
Merge fb3b57d9ea into 7fe302ed7c 2024-11-11 19:50:56 +00:00
Quake4
fb3b57d9ea use proposed format 2024-11-11 22:50:50 +03:00
Quake4
4e05bf2376 fix space 2024-11-11 22:48:39 +03:00
Quake4
bb48cab871 add { } 2024-11-11 17:57:02 +03:00

View File

@ -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 + "&nbsp;" + sortArrow(sortOrder) + "</th>";
}
else {
cols += "<th class='table-header-col active' data-name='" + col + "' data-order=" + sortOrder + ">" + col + "&nbsp;" + sortArrow(sortOrder) + "</th>";
} else {
cols += "<th class='table-header-col' data-name='" + col + "'>" + col + "</th>";
}
});