mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-24 14:36:09 -04:00
quotes
This commit is contained in:
@@ -44,17 +44,17 @@ function changeScale() {
|
||||
newHeight = monitorHeight * scale / SCALE_BASE;
|
||||
}
|
||||
|
||||
Cookie.write( 'zmWatchScale'+monitorId, scale, {duration: 10*365} );
|
||||
Cookie.write('zmWatchScale'+monitorId, scale, {duration: 10*365});
|
||||
|
||||
/*Stream could be an applet so can't use moo tools*/
|
||||
var streamImg = $('liveStream'+monitorId);
|
||||
if ( streamImg ) {
|
||||
streamImg.style.width = newWidth + "px";
|
||||
streamImg.style.height = newHeight + "px";
|
||||
streamImg.style.width = newWidth + 'px';
|
||||
streamImg.style.height = newHeight + 'px';
|
||||
|
||||
streamImg.src = streamImg.src.replace(/scale=\d+/i, 'scale='+(scale== 'auto' ? autoScale : scale));
|
||||
} else {
|
||||
console.error("No element found for liveStream.");
|
||||
console.error('No element found for liveStream.');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,17 +64,17 @@ var lastAlarmState = STATE_IDLE;
|
||||
function setAlarmState( currentAlarmState ) {
|
||||
alarmState = currentAlarmState;
|
||||
|
||||
var stateClass = "";
|
||||
var stateClass = '';
|
||||
if ( alarmState == STATE_ALARM ) {
|
||||
stateClass = "alarm";
|
||||
stateClass = 'alarm';
|
||||
} else if ( alarmState == STATE_ALERT ) {
|
||||
stateClass = "alert";
|
||||
stateClass = 'alert';
|
||||
}
|
||||
$('stateValue').set( 'text', stateStrings[alarmState] );
|
||||
$('stateValue').set('text', stateStrings[alarmState]);
|
||||
if ( stateClass ) {
|
||||
$('stateValue').setProperty( 'class', stateClass );
|
||||
$('stateValue').setProperty('class', stateClass);
|
||||
} else {
|
||||
$('stateValue').removeProperty( 'class' );
|
||||
$('stateValue').removeProperty('class');
|
||||
}
|
||||
|
||||
var isAlarmed = ( alarmState == STATE_ALARM || alarmState == STATE_ALERT );
|
||||
@@ -114,7 +114,7 @@ function setAlarmState( currentAlarmState ) {
|
||||
}
|
||||
|
||||
if ( monitorType != 'WebSite' ) {
|
||||
var streamCmdParms = "view=request&request=stream&connkey="+connKey;
|
||||
var streamCmdParms = 'view=request&request=stream&connkey='+connKey;
|
||||
if ( auth_hash ) {
|
||||
streamCmdParms += '&auth='+auth_hash;
|
||||
}
|
||||
@@ -141,7 +141,7 @@ function getStreamCmdFailure(xhr) {
|
||||
console.log(xhr);
|
||||
}
|
||||
function getStreamCmdResponse(respObj, respText) {
|
||||
watchdogOk("stream");
|
||||
watchdogOk('stream');
|
||||
if ( streamCmdTimer ) {
|
||||
streamCmdTimer = clearTimeout(streamCmdTimer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user