From 72d6c48236b7ee2992ded3cb6a19f2441fdc50c0 Mon Sep 17 00:00:00 2001 From: max-m Date: Fri, 26 Apr 2013 22:59:50 +0200 Subject: [PATCH] Replace the annoying alert message with wcfDialog --- file/js/be.bastelstu.Chat.litcoffee | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/file/js/be.bastelstu.Chat.litcoffee b/file/js/be.bastelstu.Chat.litcoffee index 3f98ca6..56727c0 100644 --- a/file/js/be.bastelstu.Chat.litcoffee +++ b/file/js/be.bastelstu.Chat.litcoffee @@ -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 $('
' + WCF.Language.get('chat.general.error.onMessageLoad') + '
').appendTo('body') + $('#timsChatLoadingErrorDialog').wcfDialog({ + 'closable': false, + title: WCF.Language.get('wcf.global.error.title') + }) complete: => @loading = false