Remove dead code from report_event_audit.js

pull/3641/head
Isaac Connor 2022-11-29 12:45:30 -05:00
parent fd9b59a94b
commit fd3c8b21d6
1 changed files with 5 additions and 19 deletions

View File

@ -1,9 +1,9 @@
function changeDateTime(e) {
var minTime_element = $j('#minTime');
var maxTime_element = $j('#maxTime');
const minTime_element = $j('#minTime');
const maxTime_element = $j('#maxTime');
var minTime = moment(minTime_element.val());
var maxTime = moment(maxTime_element.val());
const minTime = moment(minTime_element.val());
const maxTime = moment(maxTime_element.val());
if ( minTime.isAfter(maxTime) ) {
maxTime_element.parent().addClass('has-error');
return; // Don't reload because we have invalid datetime filter.
@ -13,21 +13,6 @@ function changeDateTime(e) {
minTime_element[0].form.submit();
return;
var minStr = "&minTime="+($j('#minTime')[0].value);
var maxStr = "&maxTime="+($j('#maxTime')[0].value);
var liveStr="&live="+(liveMode?"1":"0");
var fitStr ="&fit="+(fitMode?"1":"0");
var zoomStr="";
for ( var i=0; i < numMonitors; i++ ) {
if ( monitorZoomScale[monitorPtr[i]] < 0.99 || monitorZoomScale[monitorPtr[i]] > 1.01 ) { // allow for some up/down changes and just treat as 1 of almost 1
zoomStr += "&z" + monitorPtr[i].toString() + "=" + monitorZoomScale[monitorPtr[i]].toFixed(2);
}
}
var uri = "?view=" + currentView + fitStr + minStr + maxStr + liveStr + zoomStr + "&scale=" + $j("#scaleslider")[0].value + "&speed=" + speeds[$j("#speedslider")[0].value];
window.location = uri;
}
function datetime_change(newDate, oldData) {
@ -54,5 +39,6 @@ function initPage() {
onClose: datetime_change
});
}
// Kick everything off
window.addEventListener( 'DOMContentLoaded', initPage );