Fix double click to report

This commit is contained in:
2023-06-06 10:24:06 +02:00
parent eed8f12e4a
commit 8e29948809
4 changed files with 5 additions and 3 deletions

Binary file not shown.

View File

@@ -81,7 +81,9 @@ def best(file_name):
except Exception as e: except Exception as e:
return render_template( return render_template(
"error.html", "error.html",
message=f"This best results file ({file_name}) has not been created yet!", message=f"This best results file ({file_name}) has not been "
"created yet! or...",
error=str(e),
) )
return render_template("best.html", data=data) return render_template("best.html", data=data)

View File

@@ -239,7 +239,7 @@
<div class='_404'>Error</div> <div class='_404'>Error</div>
<hr> <hr>
<div class='_1'>{{ message }}</div> <div class='_1'>{{ message }}</div>
<!--<div class='_2'>WAS NOT FOUND</div>--> <div class='_2'>{{ error }}</div>
<a class='btn' href='/'>Go Back</a> <a class='btn' href='/'>Go Back</a>
</div> </div>
</body> </body>

View File

@@ -32,7 +32,7 @@ $(document).ready(function () {
}); });
// Show file with doubleclick // Show file with doubleclick
$("#file-table tbody").on("dblclick", "tr", function () { $("#file-table tbody").on("dblclick", "tr", function () {
showFile($(this).attr("id")); location.href="/results/report/"+ $(this).attr("id");
}); });
$(document).ajaxStart(function () { $(document).ajaxStart(function () {
$("body").addClass("ajaxLoading"); $("body").addClass("ajaxLoading");