Fix use of thisUrl instead of monitorUrl when getting stream status. Fix changing stream image due to use of jquery.
This commit is contained in:
parent
f8e6fae013
commit
51e7aa0983
|
@ -34,7 +34,7 @@ function streamReq(data) {
|
||||||
data.view = 'request';
|
data.view = 'request';
|
||||||
data.request = 'stream';
|
data.request = 'stream';
|
||||||
|
|
||||||
$j.getJSON(thisUrl, data)
|
$j.getJSON(monitorUrl, data)
|
||||||
.done(getCmdResponse)
|
.done(getCmdResponse)
|
||||||
.fail(logAjaxFail);
|
.fail(logAjaxFail);
|
||||||
}
|
}
|
||||||
|
@ -300,7 +300,7 @@ function getCmdResponse(respObj, respText) {
|
||||||
|
|
||||||
if (streamStatus.auth) {
|
if (streamStatus.auth) {
|
||||||
// Try to reload the image stream.
|
// Try to reload the image stream.
|
||||||
var streamImg = $j('#evtStream');
|
var streamImg = document.getElementById('evtStream');
|
||||||
if (streamImg) {
|
if (streamImg) {
|
||||||
streamImg.src = streamImg.src.replace(/auth=\w+/i, 'auth='+streamStatus.auth);
|
streamImg.src = streamImg.src.replace(/auth=\w+/i, 'auth='+streamStatus.auth);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue