1
0
Fork 0

Vier: When clicking on the reply button, the focus now automatically changes to the textarea.

This commit is contained in:
Michael Vogel 2014-05-29 20:27:06 +02:00
parent c759ee55e1
commit b0df06dd72
3 changed files with 3 additions and 2 deletions

View file

@ -47,6 +47,7 @@
$("#comment-edit-text-" + id).value = ''; $("#comment-edit-text-" + id).value = '';
$("#comment-edit-text-" + id).addClass("comment-edit-text-full"); $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
$("#comment-edit-text-" + id).removeClass("comment-edit-text-empty"); $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
$("#comment-edit-text-" + id).focus();
$("#mod-cmnt-wrap-" + id).show(); $("#mod-cmnt-wrap-" + id).show();
openMenu("comment-edit-submit-wrapper-" + id); openMenu("comment-edit-submit-wrapper-" + id);
return true; return true;

View file

@ -51,7 +51,7 @@
display: inline-block; display: inline-block;
text-decoration: inherit; text-decoration: inherit;
vertical-align: top; vertical-align: top;
font-size: 1.3333333333333333em; font-size: 1.2em;
} }
a .icon { a .icon {
display: inline-block; display: inline-block;

View file

@ -99,7 +99,7 @@
{{if $item.threaded}} {{if $item.threaded}}
{{/if}} {{/if}}
{{if $item.comment}} {{if $item.comment}}
<span id="comment-{{$item.id}}" class="fakelink togglecomment" onclick="commentExpand({{$item.id}}); openClose('item-comments-{{$item.id}}');"><i class="icon-reply"></i></span> <span id="comment-{{$item.id}}" class="fakelink togglecomment" onclick="openClose('item-comments-{{$item.id}}'); commentExpand({{$item.id}});"><i class="icon-reply"></i></span>
{{/if}} {{/if}}
{{if $item.vote}} {{if $item.vote}}
{{if $item.vote.like}} {{if $item.vote.like}}