Skip to content
Snippets Groups Projects
Commit 3f822006 authored by Emmanuel Viennet's avatar Emmanuel Viennet
Browse files

Merge pull request 'Actualiser app/static/js/jury_but.js' (#1037) from...

Merge pull request 'Actualiser app/static/js/jury_but.js' (#1037) from pascal.bouron/ScoDoc:master into master

Reviewed-on: https://git.scodoc.org/ScoDoc/ScoDoc/pulls/1037
parents 38037669 2a3e63f1
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,19 @@ $(function () {
document.querySelector("div.prev").innerHTML = "";
document.querySelector("div.next").innerHTML = "";
}
$(document).keydown(function(event) {
if (event.key === "ArrowRight") {
let nextLink = $(".next a").attr("href");
if (nextLink) {
window.location.href = nextLink;
}
} else if (event.key === "ArrowLeft") {
let prevLink = $(".prev a").attr("href");
if (prevLink) {
window.location.href = prevLink;
}
}
});
});
// ----- Etat du formulaire jury pour éviter sortie sans enregistrer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment