mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-08 11:11:38 -07:00
HA addon ingress #960
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 1.6 MiB |
@@ -307,6 +307,8 @@ function processDeviceTotals(devicesData) {
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// Render the info boxes/tiles on top
|
// Render the info boxes/tiles on top
|
||||||
function renderInfoboxes(customData) {
|
function renderInfoboxes(customData) {
|
||||||
|
if(customData.length > 0)
|
||||||
|
{
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: 'php/components/tile_cards.php', // PHP script URL
|
url: 'php/components/tile_cards.php', // PHP script URL
|
||||||
type: 'POST', // Use POST method to send data
|
type: 'POST', // Use POST method to send data
|
||||||
@@ -320,6 +322,7 @@ function renderInfoboxes(customData) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
// Map column index to column name for GraphQL query
|
// Map column index to column name for GraphQL query
|
||||||
@@ -833,7 +836,7 @@ function multiEditDevices()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// redirect to the Maintenance section
|
// redirect to the Maintenance section
|
||||||
window.location.href = window.location.origin + '/maintenance.php#tab_multiEdit?macs=' + macs.slice(0, -1);
|
window.location.href = './maintenance.php#tab_multiEdit?macs=' + macs.slice(0, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -751,7 +751,7 @@ function navigateToDeviceWithIp (ip) {
|
|||||||
{
|
{
|
||||||
mac = obj.devMac;
|
mac = obj.devMac;
|
||||||
|
|
||||||
window.open(window.location.origin +'/deviceDetails.php?mac=' + mac , "_blank");
|
window.open('./deviceDetails.php?mac=' + mac , "_blank");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user