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:
parent
d204a5d439
commit
e1cc866a83
@ -276,7 +276,7 @@ window.console ?=
|
|||||||
# Loads new messages.
|
# Loads new messages.
|
||||||
###
|
###
|
||||||
getMessages: () ->
|
getMessages: () ->
|
||||||
$.ajax 'index.php/Chat/Message/',
|
$.ajax @config.messageURL,
|
||||||
dataType: 'json'
|
dataType: 'json'
|
||||||
type: 'POST'
|
type: 'POST'
|
||||||
success: $.proxy((data, textStatus, jqXHR) ->
|
success: $.proxy((data, textStatus, jqXHR) ->
|
||||||
|
@ -67,7 +67,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</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}" />
|
<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>
|
</form>
|
||||||
|
|
||||||
@ -77,7 +77,7 @@
|
|||||||
{include file='__messageFormSmilies' smilies=$defaultSmilies}
|
{include file='__messageFormSmilies' smilies=$defaultSmilies}
|
||||||
{/capture}
|
{/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}
|
{if $smileyCategories|count}
|
||||||
<nav class="menu">
|
<nav class="menu">
|
||||||
<ul>
|
<ul>
|
||||||
@ -152,7 +152,8 @@
|
|||||||
// populate config
|
// populate config
|
||||||
be.bastelstu.WCF.Chat.config = {
|
be.bastelstu.WCF.Chat.config = {
|
||||||
reloadTime: {@CHAT_RELOADTIME},
|
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}'
|
socketIOPath: '{@CHAT_SOCKET_IO_PATH|encodeJS}'
|
||||||
}
|
}
|
||||||
WCF.Language.addObject({
|
WCF.Language.addObject({
|
||||||
|
Loading…
Reference in New Issue
Block a user