moved event alert to serverside, now node controls the registration alert. added some transition animation to page changes

This commit is contained in:
psychobunny
2013-04-23 20:17:12 +00:00
parent 67bf1b6041
commit a06b3519a1
4 changed files with 25 additions and 14 deletions

View File

@@ -65,6 +65,13 @@ var RDB = require('./redis.js');
io.sockets.emit('user.latest', {username: username});
global.socket.emit('user.create', {'status': 1});
global.socket.emit('event:alert', {
title: 'Thank you for registering',
message: 'You have successfully registered - welcome to nodebb!',
type: 'notify',
timeout: 2000
});
});
});
};