Add takeSnapshot but it needs rewriting
parent
d76fb5e5cb
commit
c3fda9be2a
|
@ -1131,6 +1131,16 @@ function initPage() {
|
||||||
this.form.submit();
|
this.form.submit();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function takeSnapshot() {
|
||||||
|
monitor_ids = [];
|
||||||
|
for (const key in monitorIndex) {
|
||||||
|
monitor_ids[monitor_ids.length] = 'monitor_ids[]='+key;
|
||||||
|
}
|
||||||
|
console.log(monitor_ids);
|
||||||
|
window.location = '?view=snapshot&action=create&'+monitor_ids.join('&');
|
||||||
|
}
|
||||||
|
|
||||||
window.addEventListener("resize", redrawScreen, {passive: true});
|
window.addEventListener("resize", redrawScreen, {passive: true});
|
||||||
// Kick everything off
|
// Kick everything off
|
||||||
window.addEventListener('DOMContentLoaded', initPage);
|
window.addEventListener('DOMContentLoaded', initPage);
|
||||||
|
|
Loading…
Reference in New Issue