From 95d7624babc93e4fd70a38cae800c629a3e7fe9a Mon Sep 17 00:00:00 2001 From: Jack Date: Sun, 4 Apr 2021 00:16:32 +0100 Subject: [PATCH] fixed pb reset and email update not showing --- src/js/settings.js | 8 ++++++++ static/index.html | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/js/settings.js b/src/js/settings.js index 726865f12..c312b83f1 100644 --- a/src/js/settings.js +++ b/src/js/settings.js @@ -727,3 +727,11 @@ $(".pageSettings .sectionGroupTitle").click((e) => { ); } }); + +$(".pageSettings #resetPersonalBestsButton").on("click", (e) => { + SimplePopups.list.resetPersonalBests.show(); +}); + +$(".pageSettings #updateAccountEmail").on("click", (e) => { + SimplePopups.list.updateEmail.show(); +}); diff --git a/static/index.html b/static/index.html index 2611cc4fb..731ef8d9d 100644 --- a/static/index.html +++ b/static/index.html @@ -3225,7 +3225,7 @@ class="button off danger" id="resetPersonalBestsButton" tabindex="0" - onclick="this.blur();simplePopups.resetPersonalBests.show();" + onclick="this.blur();" > reset personal bests @@ -3241,7 +3241,7 @@ class="button off danger" id="updateAccountEmail" tabindex="0" - onclick="this.blur();simplePopups.updateEmail.show();" + onclick="this.blur();" > update email