Skip to content
Snippets Groups Projects
Commit 73a1a4ae authored by Alexis Poyen's avatar Alexis Poyen
Browse files

Fix : refresh elections on edit

parent 6b23f08a
No related branches found
No related tags found
1 merge request!30Resolve "Handle CandidateList"
......@@ -45,17 +45,17 @@ class Round {
this.handleDom();
this.displayRounds();
}
handleDom() {
let roundHandler = this;
document.getElementById(`round-new`).addEventListener("click", function () {
roundHandler.newRound();
});
document
.getElementById(`round-modal-close`)
.addEventListener("click", function () {
Common.toggleModal("round-modal", "round-modal-card");
.getElementById(`round-modal-close`)
.addEventListener("click", function () {
Common.toggleModal("round-modal", "round-modal-card");
});
document
.getElementById(`round-modal-cancel`)
......@@ -239,6 +239,7 @@ class Round {
editRound(round) {
this.method = "PUT";
this.refreshElections();
document.getElementById("round-modal-id").value = round.ID;
document.getElementById("round-modal-election-id").value = round.ElectionID;
document.getElementById("round-modal-date").value = new Date(round.Date)
......
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