diff --git a/file/js/be.bastelstu.Chat.coffee b/file/js/be.bastelstu.Chat.coffee index f067331..92fcf9f 100644 --- a/file/js/be.bastelstu.Chat.coffee +++ b/file/js/be.bastelstu.Chat.coffee @@ -252,6 +252,12 @@ window.console ?= $('.timsChatMessage').addClass 'unloaded', 800 @handleMessages data.messages document.title = @titleTemplate.fetch data + + # Fix smiley urls ... + $('#smilies .menu li a').each (key, value) -> + anchor = $(value) + anchor.attr 'href', anchor.attr('href').replace /.*#/, "#{target.attr('href')}#" + , @ error: () -> # Reload the page to change the room the old fashion-way diff --git a/template/chat.tpl b/template/chat.tpl index 96d03a8..3e81d86 100644 --- a/template/chat.tpl +++ b/template/chat.tpl @@ -104,31 +104,8 @@