mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Remove hyphen from On-line and Off-line
JS Fix for "Online" and "Offline" on the Device-List and the Device-Details-Page
This commit is contained in:
@@ -1033,7 +1033,7 @@ function getDeviceData (readAllData=false) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Status
|
// Status
|
||||||
$('#deviceStatus').html (deviceData['dev_Status']);
|
$('#deviceStatus').html (deviceData['dev_Status'].replace('-', ''));
|
||||||
switch (deviceData['dev_Status']) {
|
switch (deviceData['dev_Status']) {
|
||||||
case 'On-line': icon='fa fa-check'; color='text-green'; break;
|
case 'On-line': icon='fa fa-check'; color='text-green'; break;
|
||||||
case 'Off-line': icon='fa fa-close'; color='text-gray'; break;
|
case 'Off-line': icon='fa fa-close'; color='text-gray'; break;
|
||||||
@@ -1078,7 +1078,7 @@ function getDeviceData (readAllData=false) {
|
|||||||
$('#txtFirstConnection').val (deviceData['dev_FirstConnection']);
|
$('#txtFirstConnection').val (deviceData['dev_FirstConnection']);
|
||||||
$('#txtLastConnection').val (deviceData['dev_LastConnection']);
|
$('#txtLastConnection').val (deviceData['dev_LastConnection']);
|
||||||
$('#txtLastIP').val (deviceData['dev_LastIP']);
|
$('#txtLastIP').val (deviceData['dev_LastIP']);
|
||||||
$('#txtStatus').val (deviceData['dev_Status']);
|
$('#txtStatus').val (deviceData['dev_Status'].replace('-', ''));
|
||||||
if (deviceData['dev_StaticIP'] == 1) {$('#chkStaticIP').iCheck('check');} else {$('#chkStaticIP').iCheck('uncheck');}
|
if (deviceData['dev_StaticIP'] == 1) {$('#chkStaticIP').iCheck('check');} else {$('#chkStaticIP').iCheck('uncheck');}
|
||||||
|
|
||||||
$('#txtScanCycle').val (deviceData['dev_ScanCycle'] +' min');
|
$('#txtScanCycle').val (deviceData['dev_ScanCycle'] +' min');
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ function initializeDatatable () {
|
|||||||
default: color='aqua'; break;
|
default: color='aqua'; break;
|
||||||
};
|
};
|
||||||
|
|
||||||
$(td).html ('<a href="deviceDetails.php?mac='+ rowData[10] +'" class="badge bg-'+ color +'">'+ cellData +'</a>');
|
$(td).html ('<a href="deviceDetails.php?mac='+ rowData[10] +'" class="badge bg-'+ color +'">'+ cellData.replace('-', '') +'</a>');
|
||||||
} },
|
} },
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user