diff options
Diffstat (limited to 'view/comment_item.tpl')
-rw-r--r-- | view/comment_item.tpl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/view/comment_item.tpl b/view/comment_item.tpl index 1b1f3a49e..885d735ed 100644 --- a/view/comment_item.tpl +++ b/view/comment_item.tpl @@ -1,5 +1,5 @@ <div class="comment-$wwedit-wrapper" id="comment-edit-wrapper-$id" style="display: block;"> - <form class="comment-edit-form" id="comment-edit-form-$id" action="item" method="post" > + <form class="comment-edit-form" id="comment-edit-form-$id" action="item" method="post" onsubmit="post_comment($id); return false;"> <input type="hidden" name="type" value="$type" /> <input type="hidden" name="profile_uid" value="$profile_uid" /> <input type="hidden" name="parent" value="$parent" /> @@ -13,9 +13,10 @@ <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" id="comment-edit-submit-$id" class="comment-edit-submit" name="submit" value="Submit" /> + <input type="submit" onclick="post_comment($id); return false;" id="comment-edit-submit-$id" class="comment-edit-submit" name="submit" value="Submit" /> </div> <div class="comment-edit-end"></div> </form> + </div> |