1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Merge branch 'master' into chatTemplate

This commit is contained in:
Tim Düsterhus 2011-12-03 14:59:55 +01:00
commit 7a86d60c6f
2 changed files with 8 additions and 1 deletions

View File

@ -13,9 +13,16 @@ if (typeof TimWolla.WCF == 'undefined') TimWolla.WCF = {};
(function ($, document) { (function ($, document) {
TimWolla.WCF.Chat = { TimWolla.WCF.Chat = {
init: function(roomID, messageID) { init: function(roomID, messageID) {
this.bindEvents();
},
bindEvents: function() {
$('.smiley').click(function(event) { $('.smiley').click(function(event) {
alert($(event.target).attr('alt')); alert($(event.target).attr('alt'));
}); });
$(window).bind('beforeunload', function() {
return false;
});
} }
}; };
})(jQuery, document); })(jQuery, document);

View File

@ -1 +1 @@
{if $templateName == 'chat'}{lang}wcf.chat.copyright{/lang}{/if} {if $templateName == 'chat'}<address class="copyright">{lang}wcf.chat.copyright{/lang}</address>{/if}