aboutsummaryrefslogtreecommitdiffstats
path: root/view/comment_item.tpl
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-01-05 16:38:24 -0800
committerfriendica <info@friendica.com>2012-01-05 16:38:24 -0800
commitb99cb511ca665bad0022de2ca43b5de78b3ffdbf (patch)
tree792ef6a835be450e65b2849b18ebf54e7ee6c2d8 /view/comment_item.tpl
parent53878625f6ecc014283cefbd84f92b6f1294b8a3 (diff)
downloadvolse-hubzilla-b99cb511ca665bad0022de2ca43b5de78b3ffdbf.tar.gz
volse-hubzilla-b99cb511ca665bad0022de2ca43b5de78b3ffdbf.tar.bz2
volse-hubzilla-b99cb511ca665bad0022de2ca43b5de78b3ffdbf.zip
comment preview
Diffstat (limited to 'view/comment_item.tpl')
-rw-r--r--view/comment_item.tpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/view/comment_item.tpl b/view/comment_item.tpl
index 0216e31d3..49751c42b 100644
--- a/view/comment_item.tpl
+++ b/view/comment_item.tpl
@@ -5,6 +5,7 @@
<input type="hidden" name="parent" value="$parent" />
<input type="hidden" name="return" value="$return_path" />
<input type="hidden" name="jsreload" value="$jsreload" />
+ <input type="hidden" name="preview" id="comment-preview-inp-$id" value="0" />
<div class="comment-edit-photo" id="comment-edit-photo-$id" >
<a class="comment-edit-photo-link" href="$mylink" title="$mytitle"><img class="my-comment-photo" src="$myphoto" alt="$mytitle" title="$mytitle" /></a>
@@ -15,6 +16,8 @@
<div class="comment-edit-text-end"></div>
<div class="comment-edit-submit-wrapper" id="comment-edit-submit-wrapper-$id" style="display: none;" >
<input type="submit" onclick="post_comment($id); return false;" id="comment-edit-submit-$id" class="comment-edit-submit" name="submit" value="$submit" />
+ <span onclick="preview_comment($id);" id="comment-edit-preview-link-$id" class="fakelink">$preview</span>
+ <div id="comment-edit-preview-$id" style="display:none;"></div>
</div>
<div class="comment-edit-end"></div>