fix lint, remove debug
parent
e4c23c3100
commit
207e5918c8
|
@ -181,7 +181,6 @@ window.addEventListener("DOMContentLoaded", function onSkinDCL() {
|
||||||
console.error("Nothing found to bind to " + fnName);
|
console.error("Nothing found to bind to " + fnName);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log('Setting onlick to ' + fnName + ' for ' + el.name);
|
|
||||||
el.onclick = function() {
|
el.onclick = function() {
|
||||||
window[fnName]();
|
window[fnName]();
|
||||||
};
|
};
|
||||||
|
@ -194,7 +193,6 @@ window.addEventListener("DOMContentLoaded", function onSkinDCL() {
|
||||||
console.error("Nothing found to bind to " + fnName);
|
console.error("Nothing found to bind to " + fnName);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log('Setting onclick-true to ' + fnName + ' for ' + el.name);
|
|
||||||
el.onclick = function() {
|
el.onclick = function() {
|
||||||
window[fnName](true);
|
window[fnName](true);
|
||||||
};
|
};
|
||||||
|
@ -207,7 +205,6 @@ window.addEventListener("DOMContentLoaded", function onSkinDCL() {
|
||||||
console.error("Nothing found to bind to " + fnName);
|
console.error("Nothing found to bind to " + fnName);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log('Setting onchange-this to ' + fnName + ' for ' + el.name);
|
|
||||||
el.onchange = window[fnName].bind(el, el);
|
el.onchange = window[fnName].bind(el, el);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -218,7 +215,6 @@ window.addEventListener("DOMContentLoaded", function onSkinDCL() {
|
||||||
console.error("Nothing found to bind to " + fnName);
|
console.error("Nothing found to bind to " + fnName);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log('Setting onchange to ' + fnName + ' for ' + el.name);
|
|
||||||
el.onchange = window[fnName];
|
el.onchange = window[fnName];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -229,7 +225,6 @@ window.addEventListener("DOMContentLoaded", function onSkinDCL() {
|
||||||
console.error("Nothing found to bind to " + fnName);
|
console.error("Nothing found to bind to " + fnName);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log('Setting oninput to ' + fnName + ' for ' + el.name);
|
|
||||||
el.oninput = window[fnName];
|
el.oninput = window[fnName];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -240,7 +235,6 @@ window.addEventListener("DOMContentLoaded", function onSkinDCL() {
|
||||||
console.error("Nothing found to bind to " + fnName);
|
console.error("Nothing found to bind to " + fnName);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log('Setting oninput-this to ' + fnName + ' for ' + el.name);
|
|
||||||
el.onchange = window[fnName].bind(el, el);
|
el.onchange = window[fnName].bind(el, el);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -26,8 +26,9 @@ function changeScale() {
|
||||||
}
|
}
|
||||||
Cookie.write( 'zmWatchScale', scale, {duration: 10*365} );
|
Cookie.write( 'zmWatchScale', scale, {duration: 10*365} );
|
||||||
$j.each(controlsLinks, function(k, anchor) { //Make frames respect scale choices
|
$j.each(controlsLinks, function(k, anchor) { //Make frames respect scale choices
|
||||||
if ( anchor )
|
if ( anchor ) {
|
||||||
anchor.prop('href', anchor.prop('href').replace(/scale=.*&/, 'scale=' + scale + '&'));
|
anchor.prop('href', anchor.prop('href').replace(/scale=.*&/, 'scale=' + scale + '&'));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -738,13 +738,12 @@ function initPage() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
[
|
[
|
||||||
'newZone[MinAlarmPixels]',
|
'newZone[MinAlarmPixels]',
|
||||||
'newZone[MaxAlarmPixels]',
|
'newZone[MaxAlarmPixels]',
|
||||||
'newZone[MinFilterPixels]',
|
'newZone[MinFilterPixels]',
|
||||||
'newZone[MaxFilterPixels]'
|
'newZone[MaxFilterPixels]'
|
||||||
].forEach(
|
].forEach(function(element_name, index) {
|
||||||
function(element_name, index) {
|
|
||||||
var el = form.elements[element_name];
|
var el = form.elements[element_name];
|
||||||
if ( el ) {
|
if ( el ) {
|
||||||
el.oninput = window['limitArea'].bind(el, el);
|
el.oninput = window['limitArea'].bind(el, el);
|
||||||
|
@ -753,8 +752,7 @@ function initPage() {
|
||||||
console.error("Element " + element_name + " not found in zone edit form");
|
console.error("Element " + element_name + " not found in zone edit form");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
form.elements['newZone[MinBlobPixels]'].disabled = true;
|
form.elements['newZone[MinBlobPixels]'].disabled = true;
|
||||||
form.elements['newZone[MaxBlobPixels]'].disabled = true;
|
form.elements['newZone[MaxBlobPixels]'].disabled = true;
|
||||||
|
@ -781,7 +779,7 @@ function initPage() {
|
||||||
el.onclick = function() {
|
el.onclick = function() {
|
||||||
refreshParentWindow();
|
refreshParentWindow();
|
||||||
closeWindow();
|
closeWindow();
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue