mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-11 22:23:32 +08:00
no anim if there is a previous callback
This commit is contained in:
parent
db4174c29a
commit
71eeba4340
1 changed files with 3 additions and 1 deletions
|
@ -47,6 +47,8 @@ export async function show(options = defaultOptions) {
|
|||
|
||||
export async function hide() {
|
||||
if (!$("#quoteReportPopupWrapper").hasClass("hidden")) {
|
||||
let noAnim = state.previousPopupShowCallback ? true : false;
|
||||
|
||||
$("#quoteReportPopupWrapper")
|
||||
.stop(true, true)
|
||||
.css("opacity", 1)
|
||||
|
@ -54,7 +56,7 @@ export async function hide() {
|
|||
{
|
||||
opacity: 0,
|
||||
},
|
||||
100,
|
||||
noAnim ? 0 : 100,
|
||||
(e) => {
|
||||
grecaptcha.reset(CAPTCHA_ID);
|
||||
$("#quoteReportPopupWrapper").addClass("hidden");
|
||||
|
|
Loading…
Reference in a new issue