From a51dfe552b02d7a95573761c25d3a2ea3d427802 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 11 Jan 2021 16:41:43 -0500 Subject: [PATCH] Remove auth_hash var that overlaps global auth_hash var. Use attr('src') instead of src --- web/skins/classic/views/js/watch.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/skins/classic/views/js/watch.js b/web/skins/classic/views/js/watch.js index 871de3f87..50024d251 100644 --- a/web/skins/classic/views/js/watch.js +++ b/web/skins/classic/views/js/watch.js @@ -1,6 +1,5 @@ var streamCmdTimer = null; var streamStatus; -var auth_hash; var alarmState = STATE_IDLE; var lastAlarmState = STATE_IDLE; var backBtn = $j('#backBtn'); @@ -115,7 +114,7 @@ function changeScale() { streamImg.width( newWidth ); streamImg.height( newHeight ); - streamImg.src = newSrc; + streamImg.attr('src', newSrc); } else { console.error('No element found for liveStream'+monitorId); } @@ -274,7 +273,7 @@ function getStreamCmdResponse(respObj, respText) { if ( streamImg ) { var oldSrc = streamImg.attr('src'); var newSrc = oldSrc.replace(/auth=\w+/i, 'auth='+streamStatus.auth); - streamImg.src = newSrc; + streamImg.attr('src', newSrc); } table.bootstrapTable('refresh'); } // end if have a new auth hash