commento.js: close login box when logged in

This commit is contained in:
Adhityaa Chandrasekar 2019-02-18 16:58:10 -05:00
parent 2e2d022c9b
commit 220109a157

View File

@ -1133,9 +1133,14 @@
attrSet(loggedContainer, "style", "");
}
global.commentNew(id, resp.commenterToken, function() {
remove($(ID_LOGIN));
if (id !== null) {
global.commentNew(id, resp.commenterToken, function() {
global.loginBoxClose();
});
} else {
global.loginBoxClose();
});
}
});
}
}, 250);
@ -1291,9 +1296,14 @@
attrSet(loggedContainer, "style", "");
}
global.commentNew(id, resp.commenterToken, function() {
remove($(ID_LOGIN));
if (id !== null) {
global.commentNew(id, resp.commenterToken, function() {
global.loginBoxClose();
});
} else {
global.loginBoxClose();
});
}
});
}