From 46c063085db03132b667b1092908cedb965a5808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 2 Dec 2011 23:16:55 +0100 Subject: [PATCH 1/2] Adding onbeforeunload-event --- file/js/TimWolla.WCF.Chat.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/file/js/TimWolla.WCF.Chat.js b/file/js/TimWolla.WCF.Chat.js index cbed6da..b509c00 100644 --- a/file/js/TimWolla.WCF.Chat.js +++ b/file/js/TimWolla.WCF.Chat.js @@ -13,9 +13,16 @@ if (typeof TimWolla.WCF == 'undefined') TimWolla.WCF = {}; (function ($, document) { TimWolla.WCF.Chat = { init: function(roomID, messageID) { + this.bindEvents(); + }, + bindEvents: function() { $('.smiley').click(function(event) { alert($(event.target).attr('alt')); }); + + $(window).bind('beforeunload', function() { + return false; + }); } }; })(jQuery, document); \ No newline at end of file From 7876f0ac7ff85183d6630af61dbb62f6c2f85125 Mon Sep 17 00:00:00 2001 From: max-m Date: Sat, 3 Dec 2011 12:10:26 +0100 Subject: [PATCH 2/2] Now the copyright is nice. --- template/chatCopyright.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/chatCopyright.tpl b/template/chatCopyright.tpl index 04e9ea1..11239c5 100644 --- a/template/chatCopyright.tpl +++ b/template/chatCopyright.tpl @@ -1 +1 @@ -{if $templateName == 'chat'}{lang}wcf.chat.copyright{/lang}{/if} \ No newline at end of file +{if $templateName == 'chat'}{/if} \ No newline at end of file