Disable delete cookie, fix fetch graph

This commit is contained in:
Joshua
2022-07-25 19:39:28 +10:00
parent 0a43e20091
commit 95f12b0a72

View File

@@ -687,7 +687,6 @@ function main () {
// Read Cookies // Read Cookies
devicesList = getCookie('devicesList'); devicesList = getCookie('devicesList');
deleteCookie ('devicesList');
if (devicesList != '') { if (devicesList != '') {
devicesList = JSON.parse (devicesList); devicesList = JSON.parse (devicesList);
} else { } else {
@@ -1179,6 +1178,7 @@ function getDeviceData (readAllData=false) {
searchParams.set("mac", mac); searchParams.set("mac", mac);
var newRelativePathQuery = window.location.pathname + '?' + searchParams.toString(); var newRelativePathQuery = window.location.pathname + '?' + searchParams.toString();
history.pushState(null, '', newRelativePathQuery); history.pushState(null, '', newRelativePathQuery);
getSessionsPresenceEvents();
$('#txtMAC').val (deviceData['dev_MAC']); $('#txtMAC').val (deviceData['dev_MAC']);
$('#txtName').val (deviceData['dev_Name']); $('#txtName').val (deviceData['dev_Name']);
@@ -1239,7 +1239,7 @@ function getDeviceData (readAllData=false) {
$('#btnNext').removeAttr ('disabled'); $('#btnNext').removeAttr ('disabled');
$('#btnNext').removeClass ('text-gray50'); $('#btnNext').removeClass ('text-gray50');
} }
getSessionsPresenceEvents();
// Timer for refresh data // Timer for refresh data
$("body").css("cursor", "default"); $("body").css("cursor", "default");
newTimerRefreshData (getDeviceData); newTimerRefreshData (getDeviceData);