diff options
author | Yorhel <git@yorhel.nl> | 2009-09-12 14:04:32 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-09-12 14:05:30 +0200 |
commit | ab155c4515a3f82af30dc72da5ab7acf9cc5ce6c (patch) | |
tree | 18aed23c85259b6457564088316282f81ecf93e7 /lib/VNDB/Handler/Discussions.pm | |
parent | 2e9748385946e53ef3713a3384514d6460bc6764 (diff) |
Handler::Discussions: Full reply button + larger textarea
Diffstat (limited to 'lib/VNDB/Handler/Discussions.pm')
-rw-r--r-- | lib/VNDB/Handler/Discussions.pm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/VNDB/Handler/Discussions.pm b/lib/VNDB/Handler/Discussions.pm index acee22a8..1d74ac6a 100644 --- a/lib/VNDB/Handler/Discussions.pm +++ b/lib/VNDB/Handler/Discussions.pm @@ -102,6 +102,7 @@ sub thread { textarea name => 'msg', id => 'msg', rows => 4, cols => 50, ''; br; input type => 'submit', value => mt('_thread_quickreply_submit'), class => 'submit'; + input type => 'submit', value => mt('_thread_quickreply_full'), class => 'submit', name => 'fullreply'; end; end; end; @@ -166,10 +167,13 @@ sub edit { { name => 'nolastmod', required => 0 }, ) : (), { name => 'msg', maxlenght => 5000 }, + { name => 'fullreply', required => 0 }, ); + $frm->{_err} = 1 if $frm->{fullreply}; + # check for double-posting - push @{$frm->{_err}}, 'doublepost' if !$num && $self->dbPostGet( + push @{$frm->{_err}}, 'doublepost' if !$num && !$frm->{_err} && $self->dbPostGet( uid => $self->authInfo->{id}, tid => $tid, mindate => time - 30, results => 1, $tid ? () : (num => 1))->[0]{num}; # parse and validate the boards @@ -227,6 +231,7 @@ sub edit { $frm->{hidden} = $t->{hidden} if !exists $frm->{hidden}; } } + delete $frm->{_err} unless ref $frm->{_err}; $frm->{boards} ||= $board; $frm->{nolastmod} = 1 if $num && $self->authCan('boardmod') && !exists $frm->{nolastmod}; @@ -254,7 +259,7 @@ sub edit { [ check => name => mt('_postedit_form_nolastmod'), short => 'nolastmod' ], ) : (), ) : (), - [ text => name => mt('_postedit_form_msg').'<br /><b class="standout">'.mt('_inenglish').'</b>', short => 'msg', rows => 10 ], + [ text => name => mt('_postedit_form_msg').'<br /><b class="standout">'.mt('_inenglish').'</b>', short => 'msg', rows => 25, cols => 75 ], [ static => content => mt('_postedit_form_msg_format') ], ]); $self->htmlFooter; |