mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
This commit is contained in:
@@ -1350,7 +1350,7 @@ function getDeviceData (readAllData=false) {
|
|||||||
|
|
||||||
// Name
|
// Name
|
||||||
if (deviceData['dev_Owner'] == null || deviceData['dev_Owner'] == '' ||
|
if (deviceData['dev_Owner'] == null || deviceData['dev_Owner'] == '' ||
|
||||||
(deviceData['dev_Name']).indexOf (deviceData['dev_Owner']) != -1 ) {
|
(deviceData['dev_Name'].toString()).indexOf (deviceData['dev_Owner']) != -1 ) {
|
||||||
$('#pageTitle').html (deviceData['dev_Name']);
|
$('#pageTitle').html (deviceData['dev_Name']);
|
||||||
} else {
|
} else {
|
||||||
$('#pageTitle').html (deviceData['dev_Name'] + ' ('+ deviceData['dev_Owner'] +')');
|
$('#pageTitle').html (deviceData['dev_Name'] + ' ('+ deviceData['dev_Owner'] +')');
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ def cleanResult(str):
|
|||||||
if str.endswith('.'):
|
if str.endswith('.'):
|
||||||
str = str[:-1]
|
str = str[:-1]
|
||||||
|
|
||||||
return str
|
return str(str)
|
||||||
|
|
||||||
|
|
||||||
# Disclaimer - I'm interfacing with a script I didn't write (pholus3.py) so it's possible I'm missing types of answers
|
# Disclaimer - I'm interfacing with a script I didn't write (pholus3.py) so it's possible I'm missing types of answers
|
||||||
|
|||||||
Reference in New Issue
Block a user