]> git.mxchange.org Git - friendica.git/commitdiff
Fix comment double-posting
authorHypolite Petovan <ben.lort@gmail.com>
Wed, 15 Mar 2017 11:07:06 +0000 (07:07 -0400)
committerHypolite Petovan <ben.lort@gmail.com>
Wed, 15 Mar 2017 11:07:06 +0000 (07:07 -0400)
view/theme/frio/templates/comment_item.tpl

index cd201dbad626b657b6437a47e1292987b4e89d23..e4ff8c03de3b7cc166dec0245924bf6970a79bf4 100644 (file)
@@ -27,9 +27,9 @@
 
                <div class="comment-edit-text-end clear"></div>
                <div class="comment-edit-submit-wrapper" id="comment-edit-submit-wrapper-{{$id}}" style="display: none;">
-                       <button class="btn btn-primary btn-sm" type="submit" onclick="post_comment({{$id}});" id="comment-edit-submit-{{$id}}" name="submit"><i class="fa fa-envelope"></i> {{$submit}}</button>
+                       <button type="submit" class="btn btn-primary btn-sm" id="comment-edit-submit-{{$id}}" name="submit"><i class="fa fa-envelope"></i> {{$submit}}</button>
                        {{if $preview}}
-                               <button class="btn btn-defaul btn-sm" type="button" onclick="preview_comment({{$id}});" id="comment-edit-preview-link-{{$id}}"><i class="fa fa-eye"></i> {{$preview}}</button>
+                               <button type="button" class="btn btn-defaul btn-sm" onclick="preview_comment({{$id}});" id="comment-edit-preview-link-{{$id}}"><i class="fa fa-eye"></i> {{$preview}}</button>
                        {{/if}}
                        <ul class="comment-edit-bb-{{$id}} comment-icon-list nav nav-pills pull-right">
                                <li>