Commit cf63c4e7 by libai

测试

parent 75075792
Showing with 8 additions and 11 deletions
...@@ -1107,16 +1107,15 @@ $(function(){ ...@@ -1107,16 +1107,15 @@ $(function(){
} }
msgSend($(".keyboard-input").val()) msgSend($(".keyboard-input").val())
}) })
$(".keyboard-input").on("keydown",function(){ $(".keyboard-input").on("focusout",function(){
if (event.keyCode == "13") { if($(".keyboard-input").val()==''){
if($(".keyboard-input").val()==''){ setTimeout(function() {
setTimeout(function() { layer.msg("請輸入要發送的內容")
layer.msg("請輸入要發送的內容") }, 300);
}, 300); return;
return;
}
msgSend($(".keyboard-input").val())
} }
msgSend($(".keyboard-input").val())
}) })
$(".room-close").on("click",function(){ $(".room-close").on("click",function(){
if(backGo!=0){ if(backGo!=0){
...@@ -2373,8 +2372,6 @@ $(function(){ ...@@ -2373,8 +2372,6 @@ $(function(){
fixScroll() fixScroll()
$(".layer-shadow").hide() $(".layer-shadow").hide()
$(".keyboard-input").val("") $(".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