added global loggedIn to templates'

v1.18.x
Baris Soner Usakli 11 years ago
parent e665b79293
commit 1da75866f4

@ -36,7 +36,10 @@ var socket,
app.uid = data.uid;
app.isAdmin = data.isAdmin;
templates.setGlobal('loggedIn', parseInt(data.uid, 10) !== 0);
app.showLoginMessage();
socket.emit('meta.updateHeader', {
fields: ['username', 'picture', 'userslug']
}, app.updateHeader);

Loading…
Cancel
Save