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

Improve and fix template

This commit is contained in:
Tim Düsterhus 2012-10-15 12:08:57 +02:00
parent d204a5d439
commit e1cc866a83
2 changed files with 5 additions and 4 deletions

View File

@ -276,7 +276,7 @@ window.console ?=
# Loads new messages.
###
getMessages: () ->
$.ajax 'index.php/Chat/Message/',
$.ajax @config.messageURL,
dataType: 'json'
type: 'POST'
success: $.proxy((data, textStatus, jqXHR) ->

View File

@ -67,7 +67,7 @@
</div>
</fieldset>
<form id="timsChatForm" action="{link controller="Chat" action="Send"}{/link}" method="post">
<form id="timsChatForm" action="{link controller='Chat' action='Send'}{/link}" method="post">
<input id="timsChatInput" accesskey="w" type="text" class="inputText long" name="text" autocomplete="off" maxlength="{@CHAT_MAX_LENGTH}" disabled="disabled" required="required" placeholder="{lang}wcf.chat.submit.default{/lang}" />
</form>
@ -77,7 +77,7 @@
{include file='__messageFormSmilies' smilies=$defaultSmilies}
{/capture}
<div id="smilies" class="smiliesContent tabMenuContent container {if $smileyCategories|count} tabMenuContainer{/if} data-store="activeTabMenuItem" data-active="smilies-default">
<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>
@ -152,7 +152,8 @@
// populate config
be.bastelstu.WCF.Chat.config = {
reloadTime: {@CHAT_RELOADTIME},
unloadURL: '{link controller='Chat' action='Leave'}{/link}',
unloadURL: '{link controller="Chat" action="Leave"}{/link}',
messageURL: '{link controller="Chat" action="Message"}{/link}',
socketIOPath: '{@CHAT_SOCKET_IO_PATH|encodeJS}'
}
WCF.Language.addObject({