Merge pull request #637 from thelounge/xpaw/extra-loading
Display extra loading messages
This commit is contained in:
commit
28b5fdb8ce
@ -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 {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user