1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Improved NoJS-warning

Closes #12
This commit is contained in:
Tim Düsterhus 2012-06-28 18:31:42 +02:00
parent 32d16f4213
commit 80d8c52cfc

5
template/chat.tpl Executable file → Normal file
View File

@ -63,7 +63,7 @@
<fieldset>
<div class="timsChatMessageContainer container box shadow1 containerPadding marginTop">
<ul>
<noscript><li class="error">{lang}wcf.chat.noJs{/lang}</li></noscript>
<li class="error">{lang}wcf.chat.noJs{/lang}</li>
</ul>
</div>
</fieldset>
@ -125,6 +125,9 @@
<script type="text/javascript">
//<![CDATA[
(function ($, window) {
// remove noscript message
$('.timsChatMessageContainer .error').remove();
// populate templates
be.bastelstu.WCF.Chat.titleTemplate = (new WCF.Template('{ldelim}$title} - {'wcf.chat.title'|language|encodeJS} - {PAGE_TITLE|language|encodeJS}')).compile();
{capture assign='chatMessageTemplate'}{include file='chatMessage'}{/capture}