mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-30 11:06:37 -04:00
commento.js: close login box when logged in
This commit is contained in:
@ -1133,9 +1133,14 @@
|
|||||||
attrSet(loggedContainer, "style", "");
|
attrSet(loggedContainer, "style", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
remove($(ID_LOGIN));
|
||||||
|
if (id !== null) {
|
||||||
global.commentNew(id, resp.commenterToken, function() {
|
global.commentNew(id, resp.commenterToken, function() {
|
||||||
global.loginBoxClose();
|
global.loginBoxClose();
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
global.loginBoxClose();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}, 250);
|
}, 250);
|
||||||
@ -1291,9 +1296,14 @@
|
|||||||
attrSet(loggedContainer, "style", "");
|
attrSet(loggedContainer, "style", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
remove($(ID_LOGIN));
|
||||||
|
if (id !== null) {
|
||||||
global.commentNew(id, resp.commenterToken, function() {
|
global.commentNew(id, resp.commenterToken, function() {
|
||||||
global.loginBoxClose();
|
global.loginBoxClose();
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
global.loginBoxClose();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user