mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-27 00:38:30 -04:00
fix eslint missing {}
This commit is contained in:
1 parent
49a1954f96
commit
76ee31bf68
1 file changed
+7
-5
@@ -16,10 +16,12 @@ function cycleStart() {
|
||||
}
|
||||
function cycleNext() {
|
||||
monIdx ++;
|
||||
if ( monIdx >= monitorData.length )
|
||||
if ( monIdx >= monitorData.length ) {
|
||||
monIdx = 0;
|
||||
if ( !monitorData[monIdx] )
|
||||
}
|
||||
if ( !monitorData[monIdx] ) {
|
||||
console.log("No monitorData for " + monIdx);
|
||||
}
|
||||
|
||||
window.location.replace('?view=cycle&mid='+monitorData[monIdx].id+'&mode='+mode, cycleRefreshTimeout);
|
||||
}
|
||||
@@ -71,9 +73,9 @@ function changeSize() {
|
||||
console.log("Did not find liveStream"+monitorData[monIdx].id);
|
||||
}
|
||||
$('scale').set('value', '');
|
||||
Cookie.write('zmCycleScale', '', { duration: 10*365 });
|
||||
Cookie.write('zmCycleWidth', width, { duration: 10*365 });
|
||||
Cookie.write('zmCycleHeight', height, { duration: 10*365 });
|
||||
Cookie.write('zmCycleScale', '', {duration: 10*365});
|
||||
Cookie.write('zmCycleWidth', width, {duration: 10*365});
|
||||
Cookie.write('zmCycleHeight', height, {duration: 10*365});
|
||||
} // end function changeSize()
|
||||
|
||||
function changeScale() {
|
||||
|
||||
Reference in new issue
Block a user