mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Copy to clipboard IP
This commit is contained in:
@@ -250,13 +250,27 @@ function renderAvailableIpsTable(allIps, usedIps) {
|
||||
destroy: true,
|
||||
data: availableIps,
|
||||
columns: [
|
||||
{ title: getString("Gen_Subnet"), data: "subnet" },
|
||||
{ title: getString("Systeminfo_AvailableIps"), data: "ip" }
|
||||
{
|
||||
title: getString("Gen_Subnet"),
|
||||
data: "subnet"
|
||||
},
|
||||
{
|
||||
title: getString("Systeminfo_AvailableIps"),
|
||||
data: "ip",
|
||||
render: function (data, type, row, meta) {
|
||||
return `
|
||||
<span>${data}</span>
|
||||
<button class="copy-btn btn btn-sm btn-info ml-2 alignRight" data-text="${data}" title="${getString("Gen_CopyToClipboard")}" onclick="copyToClipboard(this)">
|
||||
<i class="fa-solid fa-copy"></i>
|
||||
</button>
|
||||
`;
|
||||
}
|
||||
}
|
||||
],
|
||||
pageLength: 10
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// INIT
|
||||
$(document).ready(function() {
|
||||
|
||||
Reference in New Issue
Block a user