diff --git a/Yavsc/Views/Home/Chat.cshtml b/Yavsc/Views/Home/Chat.cshtml
index b178f549..2372ea67 100644
--- a/Yavsc/Views/Home/Chat.cshtml
+++ b/Yavsc/Views/Home/Chat.cshtml
@@ -66,7 +66,7 @@
function addULI(uname, cxids)
{
- $('
' + uname + '')
+ $('')
.data("name", uname)
.data("cxids", cxids)
.css('cursor', 'pointer')
@@ -94,13 +94,13 @@
};
function onCx() {
- setTimeout(function () {
- getUsers();
- },120),
+ setTimeout(function () {
+ getUsers();
+ },120),
$('#targets').removeClass('disabled')
};
function onDisCx () {
- $('#targets').addClass('disabled')
+ $('#targets').addClass('disabled');
};
// This optional function html-encodes messages for display in the page.
function htmlEncode(value) {
@@ -186,14 +186,13 @@
}
};
-
var sendMessage = function () {
chat.server.send($('#displayname').val(), $('#message').val());
// Clear text box and reset focus for next comment.
$('#message').val('')
};
- var sendPV = function () {
+ var sendPV = function () {
var msg = $('#pv').val();
// Call the Send method on the hub.
$.each(pvuis.CXs, function () {
@@ -205,11 +204,9 @@
$('#pv').val('');
}
-
// Start the connection.
$.connection.hub.start().done(function () {
onCx();
-
$('#sendmessage').click(function () {
// Call the Send method on the hub.
sendMessage();
@@ -230,7 +227,6 @@
sendPV();
$("#sendpv").focus()
});
-
});
$.connection.hub.disconnected(function () {
diff --git a/Yavsc/wwwroot/css/main/site.css b/Yavsc/wwwroot/css/main/site.css
index fec9e4be..663c9cd9 100644
--- a/Yavsc/wwwroot/css/main/site.css
+++ b/Yavsc/wwwroot/css/main/site.css
@@ -80,11 +80,15 @@ a:hover {
}
.panel{
- float: left;
+ display: inline-block;
padding:1em;
margin:1em;
color: black;
background-color: inherit;
+ border: solid black 1px;
+}
+#discussion {
+ float: left;
}
/* Set widths on the form inputs since otherwise they're 100% wide */
input,