Fix ranking mistakes

This commit is contained in:
2023-06-10 01:44:22 +02:00
parent 854815b5bb
commit d6b2b266a9
2 changed files with 13 additions and 11 deletions

View File

@@ -112,10 +112,7 @@
}
if (msg.message == "Done!") {
if ($("#excel").is(":checked")) {
let action = "window.open('/results/download/" + msg.payload.excel +"', '_blank')";
alert(action);
console.log(action);
$("#excel").attr("onclick",action);
$("#excel_button").attr("onclick", "window.open('/results/download/" + msg.payload.excel +"', '_blank')");
$("#excel_button").removeAttr("hidden");
}
if ($("#html").is(":checked")) {
@@ -139,6 +136,7 @@
$("#status").removeAttr("hidden");
$("#status-alert").removeAttr("hidden");
$(".progress").removeAttr("hidden");
$("#submit").attr("hidden", true);
}
function send() {
var data= {