浏览代码

Merge pull request #120 from fouksf/chat-bug

Fix bug with chat and bottom toolbar.
j8
hristoterezov 10 年前
父节点
当前提交
37d28b2d2d
共有 1 个文件被更改,包括 10 次插入7 次删除
  1. 10
    7
      chat.js

+ 10
- 7
chat.js 查看文件

252
 
252
 
253
             $('#chatspace').show("slide", { direction: "right",
253
             $('#chatspace').show("slide", { direction: "right",
254
                                             queue: false,
254
                                             queue: false,
255
-                                            duration: 500});
255
+                                            duration: 500,
256
+                                            complete: function () {
257
+                                                // Request the focus in the nickname field or the chat input field.
258
+                                                if ($('#nickname').css('visibility') === 'visible') {
259
+                                                    $('#nickinput').focus();
260
+                                                } else {
261
+                                                    $('#usermsg').focus();
262
+                                                }
263
+                                            }
264
+            });
256
         }
265
         }
257
 
266
 
258
-        // Request the focus in the nickname field or the chat input field.
259
-        if ($('#nickname').css('visibility') === 'visible')
260
-            $('#nickinput').focus();
261
-        else {
262
-            $('#usermsg').focus();
263
-        }
264
     };
267
     };
265
 
268
 
266
     /**
269
     /**

正在加载...
取消
保存