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

Adapt to latest WoltLab/WCF API changes

See WoltLab/WCF@42d7d2cc
This commit is contained in:
Maximilian Mader 2013-05-27 23:20:31 +03:00
parent e7b6bae348
commit f880427c54

View File

@ -370,10 +370,9 @@ Fetch new messages from the server and pass them to `handleMessages`. The userli
type: 'POST' type: 'POST'
success: (data) -> success: (data) ->
remainingFailures = 3 remainingFailures = 3
WCF.DOMNodeInsertedHandler.enable()
handleMessages data.messages handleMessages data.messages
handleUsers data.users handleUsers data.users
WCF.DOMNodeInsertedHandler.disable() WCF.DOMNodeInsertedHandler.execute()
error: -> error: ->
console.error "Message loading failed, #{--remainingFailures} remaining" console.error "Message loading failed, #{--remainingFailures} remaining"
if remainingFailures <= 0 if remainingFailures <= 0