mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Replace the annoying alert message with wcfDialog
This commit is contained in:
parent
7f5697c9ee
commit
72d6c48236
@ -407,7 +407,11 @@ Decrease `@shields` on error and disable PeriodicalExecuters once `@shields` rea
|
|||||||
@pe.getMessages.stop()
|
@pe.getMessages.stop()
|
||||||
@freeTheFish()
|
@freeTheFish()
|
||||||
console.error 'We got destroyed, but could free our friend the fish before he was killed as well. Have a nice life in freedom!'
|
console.error 'We got destroyed, but could free our friend the fish before he was killed as well. Have a nice life in freedom!'
|
||||||
alert 'herp i cannot load messages'
|
if not $.wcfIsset('timsChatLoadingErrorDialog') then $('<div id="timsChatLoadingErrorDialog">' + WCF.Language.get('chat.general.error.onMessageLoad') + '</div>').appendTo('body')
|
||||||
|
$('#timsChatLoadingErrorDialog').wcfDialog({
|
||||||
|
'closable': false,
|
||||||
|
title: WCF.Language.get('wcf.global.error.title')
|
||||||
|
})
|
||||||
complete: =>
|
complete: =>
|
||||||
@loading = false
|
@loading = false
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user