hide latest user block if doesn't exist

v1.18.x
psychobunny 12 years ago
parent 20aa5d439e
commit 93d7f8d52c

@ -24,7 +24,11 @@
});
socket.emit('user.latest', {});
socket.on('user.latest', function(data) {
latest_user.innerHTML = "The most recent user to register is <b>" + data.username + "</b>.";
if (data.username == '') {
latest_user.innerHTML = '';
} else {
latest_user.innerHTML = "The most recent user to register is <b>" + data.username + "</b>.";
}
});
socket.emit('api:user.active.get');
socket.on('api:user.active.get', function(data) {

Loading…
Cancel
Save