Enforce 10000 char limit on message box

Add maxlength attribute to the textarea which displays a tool tip (in Chrome)
for the user, telling them they are over the limit, so that the error is caught
before the send_message step (which is too late for Create and Send).

Fixes trac ticket #166.

(imported from commit 36b211a17f42dc8345e2235b4b4ca74c8f4e86c4)
This commit is contained in:
Tyler Hallada 2012-12-21 12:24:52 -05:00
parent c5d37572a7
commit 168ee1345c
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@
<td class="messagebox"> <td class="messagebox">
<div class="message_content"> <div class="message_content">
<textarea class="new_message_textarea" name="content" id="new_message_content" <textarea class="new_message_textarea" name="content" id="new_message_content"
value="" placeholder="Compose your message here..." tabindex="140"></textarea> value="" placeholder="Compose your message here..." tabindex="140" maxlength="10000"></textarea>
<div id="send_controls"> <div id="send_controls">
<a class="compose_help_text" href="#markdown-help" data-toggle="modal" tabindex="160">Formatting help</a> <a class="compose_help_text" href="#markdown-help" data-toggle="modal" tabindex="160">Formatting help</a>
<span class="compose_help_text">(Send with Tab, then Enter)</span> <span class="compose_help_text">(Send with Tab, then Enter)</span>