diff options
author | Sarven Capadisli <csarven@status.net> | 2009-12-10 14:16:07 +0100 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2009-12-10 14:16:07 +0100 |
commit | 1e166e1bc4a8b16ad2ef8e99db6a112f47803eda (patch) | |
tree | 0d06326eade1df6c48d78f5cad1659001e118f3e /lib | |
parent | 155659dd1fee44c011962432a3e2ef6d523f1a7d (diff) |
Updated FormNoticeEnhancements and Counter to use the max text value
from HTML. It also allows each .form_notice to have its own counter.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/messageform.php | 2 | ||||
-rw-r--r-- | lib/noticeform.php | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/lib/messageform.php b/lib/messageform.php index 4df193c6d..0c568e1bd 100644 --- a/lib/messageform.php +++ b/lib/messageform.php @@ -154,8 +154,6 @@ class MessageForm extends Form $contentLimit = Message::maxContent(); - $this->out->inlineScript('maxLength = ' . $contentLimit . ';'); - if ($contentLimit > 0) { $this->out->elementStart('dl', 'form_note'); $this->out->element('dt', null, _('Available characters')); diff --git a/lib/noticeform.php b/lib/noticeform.php index 0dd3f2d77..593a1e932 100644 --- a/lib/noticeform.php +++ b/lib/noticeform.php @@ -178,8 +178,6 @@ class NoticeForm extends Form $contentLimit = Notice::maxContent(); - $this->out->inlineScript('maxLength = ' . $contentLimit . ';'); - if ($contentLimit > 0) { $this->out->elementStart('dl', 'form_note'); $this->out->element('dt', null, _('Available characters')); |