aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/duepuntozero
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-25 00:13:36 -0700
committerfriendica <info@friendica.com>2012-04-25 00:13:36 -0700
commitba0ade33801af3bd553f873d7de02a35956d837a (patch)
treef3e406623bd5ca708b6d125f294e7f4314fbcd3d /view/theme/duepuntozero
parent5af80dbb89a2ce649b59439784e5166f63e4979d (diff)
downloadvolse-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-xview/theme/duepuntozero/comment_item.tpl2
-rw-r--r--view/theme/duepuntozero/theme.php3
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) {