From bfbba5474fb8dc841a453ef9baed351890bbe9d5 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 10 Dec 2021 16:37:46 -0500 Subject: [PATCH] Add auth relay to status ajax request. clear statusTimer instead of streamTimer --- web/skins/classic/views/js/watch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/skins/classic/views/js/watch.js b/web/skins/classic/views/js/watch.js index 6267fda75..b0f90bea0 100644 --- a/web/skins/classic/views/js/watch.js +++ b/web/skins/classic/views/js/watch.js @@ -531,11 +531,11 @@ function getStatusCmdResponse(respObj, respText) { } function statusCmdQuery() { - $j.getJSON(monitorUrl + '?view=request&request=status&entity=monitor&element[]=Status&element[]=FrameRate&id='+monitorId) + $j.getJSON(monitorUrl + '?view=request&request=status&entity=monitor&element[]=Status&element[]=FrameRate&id='+monitorId+'&'+auth_relay) .done(getStatusCmdResponse) .fail(logAjaxFail); - streamCmdTimer = null; + statusCmdTimer = null; } function alarmCmdReq(data) {