Show tooltip only when the number of items is greater than MAXIPDISPLAY

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
RD WebDesign
2024-08-08 17:58:38 -03:00
parent 9f283882a8
commit 88bf5a6003

View File

@@ -156,10 +156,12 @@ $(function () {
// We hit the maximum above, add "..." to symbolize we would
// have more to show here
ips.push("...");
// Show the IPs on the title when there are more than MAXIPDISPLAY items
$("td:eq(0)", row).attr("title", iptxt.join("\n"));
}
// Show the IPs in the first column
$("td:eq(0)", row).html(ips.join("<br>"));
$("td:eq(0)", row).attr("title", iptxt.join("\n"));
// MAC + Vendor field if available
if (data.macVendor && data.macVendor.length > 0) {