1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Merge remote-tracking branch 'origin/chatTplRedesign' into chatTplRedesign

This commit is contained in:
Tim Düsterhus 2011-12-26 19:01:02 +01:00
commit e4253470bb

View File

@ -18,7 +18,8 @@ TimWolla.WCF ?= {}
@bindEvents()
@refreshRoomList()
new WCF.PeriodicalExecuter $.proxy(@refreshRoomList, this), 60e3
new WCF.PeriodicalExecuter $.proxy(@getMessages, this), @config.reloadTime * 1000
$('#chatInput').focus()
###
# Binds all the events needed for Tims Chat.
@ -208,7 +209,7 @@ TimWolla.WCF ?= {}
# break if input contains only whitespace
return false if $('#chatInput').val().trim().length is 0
@freeTheFish() if $('#chatInput').val().trim() is '/free the fish'
@freeTheFish() if $('#chatInput').val().trim().toLowerCase() is '/free the fish'
$.ajax $('#chatForm').attr('action'),
data: