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)
{
$('<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("cxids", cxids)
.css('cursor', 'pointer')
@ -100,7 +100,7 @@
$('#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 () {

@ -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,

Loading…