le float:left previent du click!!!!

vnext
Paul Schneider 8 years ago
parent 9b54eefe61
commit e8d8862e89
2 changed files with 11 additions and 11 deletions

@ -66,7 +66,7 @@
function addULI(uname, cxids) function addULI(uname, cxids)
{ {
$('<li class="user"><img src="/Avatars/' + uname + '.xs.png"> ' + uname + '</li>') $('<li class="user"><button><img src="/Avatars/' + uname + '.xs.png"> ' + uname + '</button></li>')
.data("name", uname) .data("name", uname)
.data("cxids", cxids) .data("cxids", cxids)
.css('cursor', 'pointer') .css('cursor', 'pointer')
@ -94,13 +94,13 @@
}; };
function onCx() { function onCx() {
setTimeout(function () { setTimeout(function () {
getUsers(); getUsers();
},120), },120),
$('#targets').removeClass('disabled') $('#targets').removeClass('disabled')
}; };
function onDisCx () { function onDisCx () {
$('#targets').addClass('disabled') $('#targets').addClass('disabled');
}; };
// This optional function html-encodes messages for display in the page. // This optional function html-encodes messages for display in the page.
function htmlEncode(value) { function htmlEncode(value) {
@ -186,14 +186,13 @@
} }
}; };
var sendMessage = function () { var sendMessage = function () {
chat.server.send($('#displayname').val(), $('#message').val()); chat.server.send($('#displayname').val(), $('#message').val());
// Clear text box and reset focus for next comment. // Clear text box and reset focus for next comment.
$('#message').val('') $('#message').val('')
}; };
var sendPV = function () {
var sendPV = function () {
var msg = $('#pv').val(); var msg = $('#pv').val();
// Call the Send method on the hub. // Call the Send method on the hub.
$.each(pvuis.CXs, function () { $.each(pvuis.CXs, function () {
@ -205,11 +204,9 @@
$('#pv').val(''); $('#pv').val('');
} }
// Start the connection. // Start the connection.
$.connection.hub.start().done(function () { $.connection.hub.start().done(function () {
onCx(); onCx();
$('#sendmessage').click(function () { $('#sendmessage').click(function () {
// Call the Send method on the hub. // Call the Send method on the hub.
sendMessage(); sendMessage();
@ -230,7 +227,6 @@
sendPV(); sendPV();
$("#sendpv").focus() $("#sendpv").focus()
}); });
}); });
$.connection.hub.disconnected(function () { $.connection.hub.disconnected(function () {

@ -80,11 +80,15 @@ a:hover {
} }
.panel{ .panel{
float: left; display: inline-block;
padding:1em; padding:1em;
margin:1em; margin:1em;
color: black; color: black;
background-color: inherit; background-color: inherit;
border: solid black 1px;
}
#discussion {
float: left;
} }
/* Set widths on the form inputs since otherwise they're 100% wide */ /* Set widths on the form inputs since otherwise they're 100% wide */
input, input,

Loading…