Skip to content
Snippets Groups Projects

Fix flexdelft export

2 files
+ 12
6
Compare changes
  • Side-by-side
  • Inline

Files

@@ -144,12 +144,17 @@
document.addEventListener("DOMContentLoaded", function () {
const updatedSince = $("#export-updated-since");
$("#flex-export-form").submit(function () {
setTimeout(function () {
let url = new URL(window.location);
url.searchParams.set("since", moment().format("yyyy-MM-DDTHH:mm:ss"));
window.location = url;
}, 250);
$("#flex-export-form").submit(function (event) {
event.preventDefault();
const program = $("#export-program").val();
const batch = $("#export-batch-number").val();
window.open(
`/application/flex-delft-export?program=${program}&since=${updatedSince.val()}&batch=${batch}`,
"_blank"
);
let url = new URL(window.location);
url.searchParams.set("since", moment().format("yyyy-MM-DDTHH:mm:ss"));
window.location = url;
});
$("#export-program").change(function () {
let url = new URL(window.location);
Loading