1
mirror of https://gitlab.com/commento/commento.git synced 2025-06-29 22:56:37 -04:00

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", ""); 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(); global.loginBoxClose();
}); }
}); });
} }
}, 250); }, 250);
@ -1291,9 +1296,14 @@
attrSet(loggedContainer, "style", ""); 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(); global.loginBoxClose();
}); }
}); });
} }