pv test succeeded
This commit is contained in:
parent
ca2fa2f9ba
commit
7e087023ff
1 changed files with 6 additions and 8 deletions
|
|
@ -56,15 +56,14 @@
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
|
var pvuser;
|
||||||
|
|
||||||
document.userList = [];
|
|
||||||
var setPrivate = function(li)
|
var setPrivate = function(li)
|
||||||
{
|
{
|
||||||
$("#sendmessagebox").addClass("hidden");
|
$("#sendmessagebox").addClass("hidden");
|
||||||
$("#sendpvbox").removeClass("hidden");
|
$("#sendpvbox").removeClass("hidden");
|
||||||
document.privateChatter = document.userList[$(li).data("usernum")];
|
pvuser = $(li).data("user");
|
||||||
|
$('#sendpvdest').html(pvuser.UserName)
|
||||||
$('#sendpvdest').html(document.privateChatter.UserName)
|
|
||||||
}
|
}
|
||||||
var setPublic = function()
|
var setPublic = function()
|
||||||
{
|
{
|
||||||
|
|
@ -92,8 +91,7 @@
|
||||||
});
|
});
|
||||||
$(li).data("name",user.UserName);
|
$(li).data("name",user.UserName);
|
||||||
$(li).data("cxids",cxids);
|
$(li).data("cxids",cxids);
|
||||||
document.userList.push(user);
|
$(li).data("user",user);
|
||||||
$(li).data("usernum",document.userList.length-1);
|
|
||||||
$(li).css('cursor','pointer');
|
$(li).css('cursor','pointer');
|
||||||
$(li).click(function(){
|
$(li).click(function(){
|
||||||
setPrivate(this);
|
setPrivate(this);
|
||||||
|
|
@ -188,7 +186,7 @@ $('#discussion').append('<li class="notif"><i>' + htmlEncode(tag)
|
||||||
$('#sendpv').click(function () {
|
$('#sendpv').click(function () {
|
||||||
|
|
||||||
// Call the Send method on the hub.
|
// Call the Send method on the hub.
|
||||||
$.each(document.privateChatter.Connections,function () {
|
$.each(pvuser.Connections,function () {
|
||||||
chat.server.sendPV( this.ConnectionId, $('#pv').val());
|
chat.server.sendPV( this.ConnectionId, $('#pv').val());
|
||||||
});
|
});
|
||||||
// Clear text box and reset focus for next comment.
|
// Clear text box and reset focus for next comment.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue