Merge pull request #637 from thelounge/xpaw/extra-loading

Display extra loading messages
This commit is contained in:
Jérémie Astori 2016-09-30 01:34:05 -04:00 committed by GitHub
commit 28b5fdb8ce
2 changed files with 8 additions and 0 deletions

View file

@ -80,6 +80,10 @@ $(function() {
});
});
socket.on("authorized", function() {
$("#loading-page-message").text("Authorized, loading messages…");
});
socket.on("auth", function(data) {
var login = $("#sign-in");
@ -147,6 +151,8 @@ $(function() {
});
socket.on("init", function(data) {
$("#loading-page-message").text("Rendering…");
if (data.networks.length === 0) {
$("#footer").find(".connect").trigger("click");
} else {

View file

@ -140,6 +140,8 @@ function init(socket, client) {
socket.emit("auth", {success: true});
socket.on("auth", auth);
} else {
socket.emit("authorized");
socket.on(
"input",
function(data) {