mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 13:27:49 +08:00
Merge pull request #502 from cincodenada/patch-1
Remove private methods from simplePopup (fixes in Firefox, Safari, Internet Explorer)
This commit is contained in:
commit
04adcb20a7
1 changed files with 4 additions and 4 deletions
|
@ -510,7 +510,7 @@ class SimplePopup {
|
|||
this.element = $("#simplePopup");
|
||||
this.buttonText = buttonText;
|
||||
}
|
||||
#reset() {
|
||||
reset() {
|
||||
this.element.html(`
|
||||
<div class="title"></div>
|
||||
<input>
|
||||
|
@ -518,11 +518,11 @@ class SimplePopup {
|
|||
<div class="button"></div>`);
|
||||
}
|
||||
|
||||
#init() {
|
||||
init() {
|
||||
let el = this.element;
|
||||
el.find("input").val("");
|
||||
if (el.attr("popupId") !== this.id) {
|
||||
this.#reset();
|
||||
this.reset();
|
||||
el.attr("popupId", this.id);
|
||||
el.find(".title").text(this.title);
|
||||
el.find(".text").text(this.text);
|
||||
|
@ -546,7 +546,7 @@ class SimplePopup {
|
|||
}
|
||||
|
||||
show() {
|
||||
this.#init();
|
||||
this.init();
|
||||
this.wrapper
|
||||
.stop(true, true)
|
||||
.css("opacity", 0)
|
||||
|
|
Loading…
Reference in a new issue