diff --git a/Yavsc/Views/Home/Chat.cshtml b/Yavsc/Views/Home/Chat.cshtml
index 6afae2b5..01e237aa 100644
--- a/Yavsc/Views/Home/Chat.cshtml
+++ b/Yavsc/Views/Home/Chat.cshtml
@@ -2,6 +2,24 @@
ViewBag.Title = "Chat";
}
Chat
+
+
@section scripts {
@@ -37,18 +51,18 @@
// Create a function that the hub can call back to display messages.
chat.client.addMessage = function (name, message) {
// Add the message to the page.
- $('#discussion').append('' + htmlEncode(name)
+ $('#discussion').append('' + htmlEncode(name)
+ ': ' + htmlEncode(message) + '');
};
- chat.client.PV = function (name, message) {
+ chat.client.addPV = function (name, message) {
// Add the pv to the page.
- $('#private').append('' + htmlEncode(name)
+ $('#discussion').append('' + htmlEncode(name)
+ ': ' + htmlEncode(message) + '');
};
- chat.client.notify = function (tag, message) {
+ chat.client.notify = function (tag, message, data) {
// Add the pv to the page.
- $('#chatnotifs').append('' + htmlEncode(tag)
- + ' ' + htmlEncode(message) + '');
+ $('#discussion').append('' + htmlEncode(tag)
+ + ' ' + htmlEncode(message) +' '+ htmlEncode(data) +'');
};
// Get the user name and store it to prepend to messages.
$('#displayname').val(prompt('Enter your name:', ''));