mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Fixed formatting
This commit is contained in:
parent
e4253470bb
commit
05e0393fa6
@ -1,10 +1,10 @@
|
|||||||
###
|
###
|
||||||
# TimWolla.WCF.Chat
|
# TimWolla.WCF.Chat
|
||||||
#
|
#
|
||||||
# @author Tim Düsterhus
|
# @author Tim Düsterhus
|
||||||
# @copyright 2010-2011 Tim Düsterhus
|
# @copyright 2010-2011 Tim Düsterhus
|
||||||
# @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
|
# @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
|
||||||
# @package timwolla.wcf.chat
|
# @package timwolla.wcf.chat
|
||||||
###
|
###
|
||||||
|
|
||||||
TimWolla ?= {}
|
TimWolla ?= {}
|
||||||
@ -19,7 +19,7 @@ TimWolla.WCF ?= {}
|
|||||||
@refreshRoomList()
|
@refreshRoomList()
|
||||||
new WCF.PeriodicalExecuter $.proxy(@refreshRoomList, this), 60e3
|
new WCF.PeriodicalExecuter $.proxy(@refreshRoomList, this), 60e3
|
||||||
new WCF.PeriodicalExecuter $.proxy(@getMessages, this), @config.reloadTime * 1000
|
new WCF.PeriodicalExecuter $.proxy(@getMessages, this), @config.reloadTime * 1000
|
||||||
|
|
||||||
$('#chatInput').focus()
|
$('#chatInput').focus()
|
||||||
###
|
###
|
||||||
# Binds all the events needed for Tims Chat.
|
# Binds all the events needed for Tims Chat.
|
||||||
@ -28,12 +28,12 @@ TimWolla.WCF ?= {}
|
|||||||
$('.smiley').click $.proxy (event) ->
|
$('.smiley').click $.proxy (event) ->
|
||||||
@insertText ' ' + $(event.target).attr('alt') + ' '
|
@insertText ' ' + $(event.target).attr('alt') + ' '
|
||||||
, this
|
, this
|
||||||
|
|
||||||
$('.chatSidebarTabs li').click $.proxy (event) ->
|
$('.chatSidebarTabs li').click $.proxy (event) ->
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
@toggleSidebarContents $ event.target
|
@toggleSidebarContents $ event.target
|
||||||
, this
|
, this
|
||||||
|
|
||||||
$('.chatUser .chatUserLink').click $.proxy (event) ->
|
$('.chatUser .chatUserLink').click $.proxy (event) ->
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
@toggleUserMenu $ event.target
|
@toggleUserMenu $ event.target
|
||||||
@ -80,7 +80,7 @@ TimWolla.WCF ?= {}
|
|||||||
# mark as active
|
# mark as active
|
||||||
$('.activeMenuItem .chatRoom').parent().removeClass 'activeMenuItem'
|
$('.activeMenuItem .chatRoom').parent().removeClass 'activeMenuItem'
|
||||||
target.parent().addClass 'activeMenuItem'
|
target.parent().addClass 'activeMenuItem'
|
||||||
|
|
||||||
# set new topic
|
# set new topic
|
||||||
if data.topic is ''
|
if data.topic is ''
|
||||||
return if $('#topic').text().trim() is ''
|
return if $('#topic').text().trim() is ''
|
||||||
|
Loading…
Reference in New Issue
Block a user