commento.js: close login box when logged in
This commit is contained in:
parent
2e2d022c9b
commit
220109a157
@ -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();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user