Collapse comment text when editing it

hinted-selects
Vitaliy Filippov 2014-09-10 15:35:40 +04:00
parent f75546693d
commit bfef679d5e
3 changed files with 8 additions and 3 deletions

View File

@ -432,6 +432,7 @@ function showEditComment(comment_id)
submit_but.value = 'Save All Changes';
but_wrapper.appendChild(submit_but);
parent.appendChild(but_wrapper);
showhide_comment(key, false);
textarea.focus();
}
}

View File

@ -531,6 +531,11 @@ input.required, select.required, span.required_explanation {
margin: 0;
}
.bz_comment textarea {
margin: 8px 0;
padding: 10px;
}
.bz_first_comment_head, .bz_comment_head, .bz_comment_wthead {
font-weight: normal;
line-height: 32px;

View File

@ -121,10 +121,9 @@
[% IF NOT wt_only %]
<span class="bz_comment_number">
[% IF (comment.author.id == user.id || !comment.count) && collision != 1 %]
[<a href="#" onclick="showEditComment([% comment.id %]); return false;">Edit Comment</a>]
[<a href="#" onclick="showEditComment([% comment.id %]); return false;">Edit</a>]
[% END %]
<a name="c[% comment.count %]"
href="show_bug.cgi?id=[% bug.bug_id %]#c[% comment.count %]">
<a name="c[% comment.count %]" href="show_bug.cgi?id=[% bug.bug_id %]#c[% comment.count %]">
[%- comment_label FILTER html %]</a>
</span>
[% END %]