1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-01-09 00:20:08 +00:00

Fix smiley loading

This commit is contained in:
max-m 2013-02-01 21:29:50 +01:00
parent 6d40e07fbe
commit 7459afa018
2 changed files with 8 additions and 25 deletions

View File

@ -252,6 +252,12 @@ window.console ?=
$('.timsChatMessage').addClass 'unloaded', 800 $('.timsChatMessage').addClass 'unloaded', 800
@handleMessages data.messages @handleMessages data.messages
document.title = @titleTemplate.fetch data 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: () -> error: () ->
# Reload the page to change the room the old fashion-way # Reload the page to change the room the old fashion-way

View File

@ -104,31 +104,8 @@
<div id="timsChatControls" class="marginTop"> <div id="timsChatControls" class="marginTop">
{if MODULE_SMILEY} {if MODULE_SMILEY}
{capture assign=__defaultSmilies} <div class="tabMenuContainer">
{include file='__messageFormSmilies' smilies=$defaultSmilies} {include file='messageFormSmilies' wysiwygSelector=''}
{/capture}
<div id="smilies" class="smiliesContent tabMenuContent container {if $smileyCategories|count} tabMenuContainer{/if}" data-store="activeTabMenuItem" data-active="smilies-default">
{if $smileyCategories|count}
<nav class="menu">
<ul>
<li><a href="#smilies-default">{lang}wcf.smilies.default{/lang}</a></li>
{foreach from=$smileyCategories item=smileyCategory}
<li><a href="#smilies-{@$smileyCategory->smileyCategoryID}" data-smiley-category-id="{@$smileyCategory->smileyCategoryID}">{$smileyCategory->title|language}</a></li>
{/foreach}
</ul>
</nav>
<div id="smilies-default" class="hidden">
{@$__defaultSmilies}
</div>
{foreach from=$smileyCategories item='smileyCategory'}
<div id="smilies-{$smileyCategory->smileyCategoryID}" class="hidden"></div>
{/foreach}
{else}
{@$__defaultSmilies}
{/if}
</div> </div>
{/if} {/if}
<nav id="timsChatOptions"> <nav id="timsChatOptions">