added sounds for incoming and outgoing chat, and new notification

This commit is contained in:
Julian Lam
2014-03-11 17:47:13 -04:00
parent 4cb9f34253
commit 3dc4fd9fd9
5 changed files with 50 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
define(['taskbar', 'string'], function(taskbar, S) {
define(['taskbar', 'string', 'sound'], function(taskbar, S, sound) {
var module = {};
@@ -69,6 +69,8 @@ define(['taskbar', 'string'], function(taskbar, S) {
app.alternatingTitle(data.username + ' has messaged you');
});
}
sound.play('chat-incoming');
});
}
@@ -220,6 +222,7 @@ define(['taskbar', 'string'], function(taskbar, S) {
msg = msg +'\n';
socket.emit('modules.chats.send', { touid:chatModal.touid, message:msg});
chatModal.find('#chat-message-input').val('');
sound.play('chat-outgoing');
}
}