that's the last of it!! :D

This commit is contained in:
Julian Lam
2014-01-10 16:00:03 -05:00
parent a2329980c8
commit a150691b5e
16 changed files with 623 additions and 313 deletions

View File

@@ -299,6 +299,7 @@ function emitOnlineUserCount(callback) {
}
}
Sockets.emitAlert = emitAlert;
function emitAlert(socket, title, message) {
socket.emit('event:alert', {
type: 'danger',
@@ -309,6 +310,7 @@ function emitAlert(socket, title, message) {
});
}
Sockets.emitContentTooShortAlert = emitContentTooShortAlert;
function emitContentTooShortAlert(socket) {
socket.emit('event:alert', {
type: 'danger',
@@ -319,6 +321,7 @@ function emitContentTooShortAlert(socket) {
});
}
Sockets.emitTooManyPostsAlert = emitTooManyPostsAlert;
function emitTooManyPostsAlert(socket) {
socket.emit('event:alert', {
title: 'Too many posts!',