spacing remove dead code
This commit is contained in:
parent
25f6935280
commit
dab9bce8f4
|
@ -284,9 +284,11 @@ function getStreamCmdResponse(respObj, respText) {
|
|||
if (streamImg) {
|
||||
var oldSrc = streamImg.attr('src');
|
||||
var newSrc = oldSrc.replace(/auth=\w+/i, 'auth='+streamStatus.auth);
|
||||
if (oldSrc != newSrc) {
|
||||
streamImg.attr('src', newSrc);
|
||||
}
|
||||
table.bootstrapTable('refresh');
|
||||
}
|
||||
}
|
||||
} // end if have a new auth hash
|
||||
} // end if respObj.status
|
||||
} else {
|
||||
|
@ -295,7 +297,6 @@ function getStreamCmdResponse(respObj, respText) {
|
|||
// If it's an auth error, we should reload the whole page.
|
||||
console.log("have error");
|
||||
//window.location.reload();
|
||||
if ( 1 ) {
|
||||
var streamImg = $j('#liveStream'+monitorId);
|
||||
if (streamImg) {
|
||||
var oldSrc = streamImg.attr('src');
|
||||
|
@ -307,7 +308,6 @@ function getStreamCmdResponse(respObj, respText) {
|
|||
console.log('Unable to find streamImg liveStream');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var streamCmdTimeout = statusRefreshTimeout;
|
||||
if (alarmState == STATE_ALARM || alarmState == STATE_ALERT) {
|
||||
|
|
Loading…
Reference in New Issue