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

Use the new counter ;)

This commit is contained in:
max-m 2011-12-20 16:39:43 +01:00
parent f67405866b
commit a850f5235b

View File

@ -275,10 +275,7 @@
</div>
<form id="chatForm" action="{link controller="Chat" action="Send"}{/link}" method="post">
<div class="counterContainer"><div>
<input type="text" id="chatInput" class="inputText long counterInput" name="text" autocomplete="off" maxlength="{CHAT_LENGTH}" required="required" placeholder="{lang}wcf.chat.submit.default{/lang}" />
<div class="counter color-1">{CHAT_LENGTH}</div>
</div></div>
<input type="text" id="chatInput" class="inputText long counterInput" name="text" autocomplete="off" maxlength="{CHAT_LENGTH}" required="required" placeholder="{lang}wcf.chat.submit.default{/lang}" />
</form>
<div id="chatControls">
@ -338,7 +335,7 @@
maxTextLength: {CHAT_LENGTH}
}
$('#chatInput').jCounter($('#chatInput').attr('maxlength'), { container: '.counter' });
$('#chatInput').jCounter();
$('#sidebar').wcfSidebar();
//]]>
</script>