1
0
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:
max-m 2013-04-26 22:59:50 +02:00
parent 7f5697c9ee
commit 72d6c48236

View File

@ -407,7 +407,11 @@ Decrease `@shields` on error and disable PeriodicalExecuters once `@shields` rea
@pe.getMessages.stop()
@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!'
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: =>
@loading = false