summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--data/lang.txt4
-rw-r--r--data/style.css2
-rw-r--r--lib/VNDB/Handler/Discussions.pm9
4 files changed, 13 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 02440245..f915e883 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,6 +16,7 @@ git - ?
- Ignore some release fields when the patch status is checked
- Batch edit downloadable trial releases to add freeware status
- Remind the user to type English in several form fields
+ - Full reply button in Quick reply box + larger textarea in post form
2.6 - 2009-08-09
- New screen resolutions: 1024x600 and 1600x1200
diff --git a/data/lang.txt b/data/lang.txt
index 06880c47..86d22ac0 100644
--- a/data/lang.txt
+++ b/data/lang.txt
@@ -1094,6 +1094,10 @@ ru : Быстрый ответ
en : Reply
ru : Ответить
+:_thread_quickreply_full
+en : Go advanced...
+ru*:
+
# Post edit/reply/new thread form
diff --git a/data/style.css b/data/style.css
index b69e5378..53255c74 100644
--- a/data/style.css
+++ b/data/style.css
@@ -157,7 +157,7 @@ fieldset.submit {
margin: 5px;
}
fieldset.submit input {
- width: 200px;
+ width: 150px;
}
fieldset.submit h2 {
font-size: 11px!important;
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;