mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-11 18:03:30 +08:00
removed form from simple popups
This commit is contained in:
parent
b9b24976be
commit
ff1098abf6
1 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,7 @@ class SimplePopup {
|
|||
reset() {
|
||||
this.element.html(`
|
||||
<div class="title"></div>
|
||||
<form class="inputs"></form>
|
||||
<div class="inputs"></div>
|
||||
<div class="text"></div>
|
||||
<div class="button"></div>`);
|
||||
}
|
||||
|
@ -119,6 +119,7 @@ $(document).on("click", "#simplePopupWrapper .button", (e) => {
|
|||
|
||||
$(document).on("keyup", "#simplePopupWrapper input", (e) => {
|
||||
if (e.key === "Enter") {
|
||||
e.preventDefault();
|
||||
let id = $("#simplePopup").attr("popupId");
|
||||
simplePopups[id].exec();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue