Merge pull request #2894 from nzalev/remove-trailing-commas

Remove trailing commas from interface titles
This commit is contained in:
Ylian Saint-Hilaire 2021-07-13 00:25:12 -07:00 committed by GitHub
commit df2d2bcd9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10001,10 +10001,10 @@
var m = network.netif2[i];
if ((Array.isArray(m) == false) || (m.length < 1) || (m[0] == null) || ((typeof m[0].mac == 'string') && (m[0].mac.startsWith('00:00:00:00')))) continue;
x += '<tr><td><div class=style10 style=border-radius:5px;padding:8px>';
var ifTitle = [];
if (i != null) { ifTitle.push(i); }
if (m[0].fqdn != null) { ifTitle.push(m[0].fqdn); }
if (ifTitle.length > 0) { x += '<div style=margin-bottom:3px><b>' + EscapeHtml(ifTitle.join(', ')) + '</b></div>'; }
var ifTitle = '';
if (i != null) ifTitle += i;
if (m[0].fqdn != null && m[0].fqdn != '') ifTitle += ', ' + m[0].fqdn;
if (ifTitle.length > 0) { x += '<div style=margin-bottom:3px><b>' + EscapeHtml(ifTitle) + '</b></div>'; }
if (m.desc) { x += addDetailItem("Description", EscapeHtml(m.desc).split('(R)').join('&reg;')); }
//if (m.dnssuffix) { x += addDetailItem("DNS Suffix", m.dnssuffix); }
if (typeof m[0].mac == 'string') {