Skip to content

Commit

Permalink
Avoid spamming edit button when saving
Browse files Browse the repository at this point in the history
  • Loading branch information
yarduon committed Sep 14, 2024
1 parent 6fb4f22 commit fd79edd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,9 @@ document.getElementById("submit-changes").addEventListener("click", (e) => {
// Reset winner mode
localStorage.setItem("winnerExists", false);
// Save team names
editTeam(true);
editTeam(
document.getElementById("edit").children[0].src.includes("save.svg")
);
// Hide burger menu
document.getElementById("burger-checkbox").checked = false;
} catch (ex) {
Expand Down

0 comments on commit fd79edd

Please sign in to comment.