diff options
author | friendica <info@friendica.com> | 2012-04-25 00:13:36 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-04-25 00:13:36 -0700 |
commit | ba0ade33801af3bd553f873d7de02a35956d837a (patch) | |
tree | f3e406623bd5ca708b6d125f294e7f4314fbcd3d /view/theme/duepuntozero | |
parent | 5af80dbb89a2ce649b59439784e5166f63e4979d (diff) | |
download | volse-hubzilla-ba0ade33801af3bd553f873d7de02a35956d837a.tar.gz volse-hubzilla-ba0ade33801af3bd553f873d7de02a35956d837a.tar.bz2 volse-hubzilla-ba0ade33801af3bd553f873d7de02a35956d837a.zip |
cleanup - make bb-buttons vanish when comment closed
Diffstat (limited to 'view/theme/duepuntozero')
-rwxr-xr-x | view/theme/duepuntozero/comment_item.tpl | 2 | ||||
-rw-r--r-- | view/theme/duepuntozero/theme.php | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/view/theme/duepuntozero/comment_item.tpl b/view/theme/duepuntozero/comment_item.tpl index 84b9597e8..79d5f6ab9 100755 --- a/view/theme/duepuntozero/comment_item.tpl +++ b/view/theme/duepuntozero/comment_item.tpl @@ -38,7 +38,7 @@ onclick="insertFormatting('$comment','video', $id);"></a></li> </ul> <div class="comment-edit-bb-end"></div> - <textarea id="comment-edit-text-$id" class="comment-edit-text-empty" name="body" onFocus="commentOpen(this,$id);cmtBbOpen($id);" onBlur="commentClose(this,$id);" >$comment</textarea> + <textarea id="comment-edit-text-$id" class="comment-edit-text-empty" name="body" onFocus="commentOpen(this,$id);cmtBbOpen($id);" onBlur="commentClose(this,$id);cmtBbClose($id);" >$comment</textarea> {{ if $qcomment }} <select id="qcomment-select-$id" name="qcomment-$id" class="qcomment" onchange="qCommentInsert(this,$id);" > <option value=""></option> diff --git a/view/theme/duepuntozero/theme.php b/view/theme/duepuntozero/theme.php index 8c7e6c607..968644525 100644 --- a/view/theme/duepuntozero/theme.php +++ b/view/theme/duepuntozero/theme.php @@ -12,7 +12,8 @@ function insertFormatting(comment,BBcode,id) { $("#comment-edit-text-" + id).addClass("comment-edit-text-full"); $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty"); openMenu("comment-edit-submit-wrapper-" + id); - } + $("#comment-edit-text-" + id).val(tmpStr); + } textarea = document.getElementById("comment-edit-text-" +id); if (document.selection) { |