From 9db9649e99192718b7cc686048486a126d38e710 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Fri, 16 Dec 2016 15:34:57 +0100 Subject: [PATCH] Formatting --- Yavsc/Views/Home/Chat.cshtml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Yavsc/Views/Home/Chat.cshtml b/Yavsc/Views/Home/Chat.cshtml index 21d82cdd..f1d45341 100644 --- a/Yavsc/Views/Home/Chat.cshtml +++ b/Yavsc/Views/Home/Chat.cshtml @@ -16,17 +16,19 @@ color: black; font-family: monospace; font-style: bold; + background-color: yellow; }
-
+

Salons

  • Public

Utilisateurs

-
    +
    +
@@ -75,15 +77,17 @@ setPublic(); var getUsers = function() { + console.log("Try and get user list ..."); $('#userlist').empty(); $('#to').empty(); $.get("/api/chat/users").done( function(users) { $.each(users, function () { var user = this; + console.log(user); var existent = $('#userlist li').filterByData("name",user.UserName); if (existent.length>0) existent.remove(); - var li = $('
  • '+htmlEncode(user.UserName)+'
  • '); + var li = $('
  • '+htmlEncode(user.UserName)+'
  • '); var cxids = []; $.each(user.Connections,function() { @@ -136,7 +140,7 @@ ids.push(cxid); connected.data("cxids",ids); } else { - var li = $('
  • '+username+'
  • '); + var li = $('
  • '+username+'
  • '); li.data("name",username); li.data("cxids",[cxid]); li.appendTo('#userlist');