commento.js: fix disappearing logout button

Fixes https://gitlab.com/commento/commento/issues/135
This commit is contained in:
Adhityaa Chandrasekar 2019-04-13 21:29:06 -04:00
parent 672863b48f
commit 86393ad9ab

View File

@ -297,6 +297,7 @@
} }
selfLoad(resp.commenter); selfLoad(resp.commenter);
global.allShow();
call(callback); call(callback);
}); });
@ -1307,10 +1308,7 @@
cookieSet("commentoCommenterToken", resp.commenterToken); cookieSet("commentoCommenterToken", resp.commenterToken);
selfLoad(resp.commenter); selfLoad(resp.commenter);
var loggedContainer = $(ID_LOGGED_CONTAINER); global.allShow();
if (loggedContainer) {
attrSet(loggedContainer, "style", "");
}
remove($(ID_LOGIN)); remove($(ID_LOGIN));
if (id !== null) { if (id !== null) {
@ -1657,6 +1655,7 @@
attrSet(root, "style", ""); attrSet(root, "style", "");
nameWidthFix(); nameWidthFix();
loadHash(); loadHash();
global.allShow();
call(callback); call(callback);
}); });
}); });