Merge branch 'development' into new/web_prefix

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2025-03-09 20:15:59 +01:00
44 changed files with 305 additions and 195 deletions

View File

@@ -138,6 +138,19 @@ $(function () {
var ips = [],
iptitles = [];
// Sort IPs, IPv4 before IPv6, then alphabetically
data.ips.sort(function (a, b) {
if (a.ip.includes(":") && !b.ip.includes(":")) {
return 1;
}
if (!a.ip.includes(":") && b.ip.includes(":")) {
return -1;
}
return a.ip.localeCompare(b.ip);
});
for (index = 0; index < data.ips.length; index++) {
var ip = data.ips[index],
iptext = ip.ip;
@@ -238,6 +251,7 @@ $(function () {
{ data: "numQueries", width: "9%", render: $.fn.dataTable.render.text() },
{ data: "", width: "6%", orderable: false },
{ data: "", width: "6%", orderable: false },
{ data: "ips[].name", visible: false, class: "hide" },
],
drawCallback: function () {