Commit cf63c4e7 by libai

测试

parent 75075792
Showing with 8 additions and 11 deletions
......@@ -1107,16 +1107,15 @@ $(function(){
}
msgSend($(".keyboard-input").val())
})
$(".keyboard-input").on("keydown",function(){
if (event.keyCode == "13") {
if($(".keyboard-input").val()==''){
setTimeout(function() {
layer.msg("請輸入要發送的內容")
}, 300);
return;
}
msgSend($(".keyboard-input").val())
$(".keyboard-input").on("focusout",function(){
if($(".keyboard-input").val()==''){
setTimeout(function() {
layer.msg("請輸入要發送的內容")
}, 300);
return;
}
msgSend($(".keyboard-input").val())
})
$(".room-close").on("click",function(){
if(backGo!=0){
......@@ -2373,8 +2372,6 @@ $(function(){
fixScroll()
$(".layer-shadow").hide()
$(".keyboard-input").val("")
}
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment