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);
|
||||
return;
|
||||
}
|
||||
console.log('Setting onlick to ' + fnName + ' for ' + el.name);
|
||||
el.onclick = function() {
|
||||
window[fnName]();
|
||||
};
|
||||
|
@ -194,7 +193,6 @@ window.addEventListener("DOMContentLoaded", function onSkinDCL() {
|
|||
console.error("Nothing found to bind to " + fnName);
|
||||
return;
|
||||
}
|
||||
console.log('Setting onclick-true to ' + fnName + ' for ' + el.name);
|
||||
el.onclick = function() {
|
||||
window[fnName](true);
|
||||
};
|
||||
|
@ -207,7 +205,6 @@ window.addEventListener("DOMContentLoaded", function onSkinDCL() {
|
|||
console.error("Nothing found to bind to " + fnName);
|
||||
return;
|
||||
}
|
||||
console.log('Setting onchange-this to ' + fnName + ' for ' + el.name);
|
||||
el.onchange = window[fnName].bind(el, el);
|
||||
});
|
||||
|
||||
|
@ -218,7 +215,6 @@ window.addEventListener("DOMContentLoaded", function onSkinDCL() {
|
|||
console.error("Nothing found to bind to " + fnName);
|
||||
return;
|
||||
}
|
||||
console.log('Setting onchange to ' + fnName + ' for ' + el.name);
|
||||
el.onchange = window[fnName];
|
||||
});
|
||||
|
||||
|
@ -229,7 +225,6 @@ window.addEventListener("DOMContentLoaded", function onSkinDCL() {
|
|||
console.error("Nothing found to bind to " + fnName);
|
||||
return;
|
||||
}
|
||||
console.log('Setting oninput to ' + fnName + ' for ' + el.name);
|
||||
el.oninput = window[fnName];
|
||||
});
|
||||
|
||||
|
@ -240,7 +235,6 @@ window.addEventListener("DOMContentLoaded", function onSkinDCL() {
|
|||
console.error("Nothing found to bind to " + fnName);
|
||||
return;
|
||||
}
|
||||
console.log('Setting oninput-this to ' + fnName + ' for ' + el.name);
|
||||
el.onchange = window[fnName].bind(el, el);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -26,8 +26,9 @@ function changeScale() {
|
|||
}
|
||||
Cookie.write( 'zmWatchScale', scale, {duration: 10*365} );
|
||||
$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 + '&'));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -738,13 +738,12 @@ function initPage() {
|
|||
}
|
||||
}
|
||||
);
|
||||
[
|
||||
[
|
||||
'newZone[MinAlarmPixels]',
|
||||
'newZone[MaxAlarmPixels]',
|
||||
'newZone[MinFilterPixels]',
|
||||
'newZone[MaxFilterPixels]'
|
||||
].forEach(
|
||||
function(element_name, index) {
|
||||
].forEach(function(element_name, index) {
|
||||
var el = form.elements[element_name];
|
||||
if ( 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");
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
);
|
||||
|
||||
form.elements['newZone[MinBlobPixels]'].disabled = true;
|
||||
form.elements['newZone[MaxBlobPixels]'].disabled = true;
|
||||
|
@ -781,7 +779,7 @@ function initPage() {
|
|||
el.onclick = function() {
|
||||
refreshParentWindow();
|
||||
closeWindow();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue