]> git.mxchange.org Git - friendica.git/commitdiff
Replace obsolete #comment-preview-inp field by query string append
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 30 Jul 2019 01:58:37 +0000 (21:58 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 30 Jul 2019 01:58:37 +0000 (21:58 -0400)
view/js/main.js
view/templates/comment_item.tpl
view/templates/item/compose.tpl
view/templates/moderated_comment.tpl
view/theme/duepuntozero/templates/comment_item.tpl
view/theme/duepuntozero/templates/moderated_comment.tpl
view/theme/frio/templates/comment_item.tpl
view/theme/quattro/templates/comment_item.tpl
view/theme/vier/templates/comment_item.tpl

index a2e2698a821730dd81653f97781294bd21143dd2..8b1303e7d3f534e3937f6cc459d441b0385018d7 100644 (file)
@@ -632,7 +632,6 @@ function post_comment(id) {
        unpause();
        commentBusy = true;
        $('body').css('cursor', 'wait');
-       $("#comment-preview-inp-" + id).val("0");
        $.post(
                "item",
                $("#comment-edit-form-" + id).serialize(),
@@ -661,11 +660,10 @@ function post_comment(id) {
 }
 
 function preview_comment(id) {
-       $("#comment-preview-inp-" + id).val("1");
        $("#comment-edit-preview-" + id).show();
        $.post(
                "item",
-               $("#comment-edit-form-" + id).serialize(),
+               $("#comment-edit-form-" + id).serialize() + '&preview=1',
                function(data) {
                        if (data.preview) {
                                $("#comment-edit-preview-" + id).html(data.preview);
index 352ff417f0e01ab9812498e5a6165b7dbc26d807..977a5b75b2663eb49f86f80c9c3513b5ced23103 100644 (file)
@@ -10,7 +10,6 @@
                                <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" />
                                <input type="hidden" name="post_id_random" value="{{$rand_num}}" />
 
                                <div class="comment-edit-photo" id="comment-edit-photo-{{$id}}" >
index b1aa73d332ad791468fb00ec1b847f0aeddf1cc7..d18b1a2d36af1aa07ee09193ea7e6ee395d59ad0 100644 (file)
@@ -3,7 +3,6 @@
        <div id="profile-jot-wrapper">
                <form class="comment-edit-form" data-item-id="{{$id}}" id="comment-edit-form-{{$id}}" action="compose/{{$type}}" method="post">
                    {{*<!--<input type="hidden" name="return" value="{{$return_path}}" />-->*}}
-                       <input type="hidden" name="preview" id="comment-preview-inp-{{$id}}" value="0" />
                        <input type="hidden" name="post_id_random" value="{{$rand_num}}" />
                        <input type="hidden" name="post_type" value="{{$posttype}}" />
                        <input type="hidden" name="wall" value="{{$wall}}" />
index d52bf172a0e1957c6802dd51d30e664b100216cc..39dbbde4777a42f5e037dc01b14baac247a33c5e 100644 (file)
@@ -6,7 +6,6 @@
                                <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>
index bfa5f093884d5cce04866eee21c2abc4bfb9c242..cd14b253c5efe3641ee3e1eedb758ce02a7a9fc3 100644 (file)
@@ -10,7 +10,6 @@
                                <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" />
                                <input type="hidden" name="post_id_random" value="{{$rand_num}}" />
 
                                <div class="comment-edit-photo" id="comment-edit-photo-{{$id}}">
index e5c2e5b9ad25f23e149ab31b8f175dec40750173..197d1281d35ff572972910bafb542d7049fdc548 100644 (file)
@@ -6,7 +6,6 @@
                                <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>
index 98b3c4563632f1e203e5fc61c803bbde1b663607..b60f5c429e8fb76074ff7e94092e336967d14105 100644 (file)
@@ -10,7 +10,6 @@
                <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" />
                <input type="hidden" name="post_id_random" value="{{$rand_num}}" />
 
                <p class="comment-edit-bb-{{$id}} comment-icon-list">
index 774ffac2757e887a511a6ba6ad181b40f42cb71f..1fa4e333ed7bd46c6b904f906f0526610b3111b6 100644 (file)
@@ -5,7 +5,6 @@
                                <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" />
                                <input type="hidden" name="post_id_random" value="{{$rand_num}}" />
 
                                <div class="comment-edit-photo" id="comment-edit-photo-{{$id}}">
index 8ccdccb80d2878f17e9e9d8ab395ec11e3864e11..0e2cbb5bbfe01d7b099ce5e3ae31fe990e5b6d57 100644 (file)
@@ -10,7 +10,6 @@
                                <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" />
                                <input type="hidden" name="post_id_random" value="{{$rand_num}}" />
 
                                <div class="comment-edit-photo" id="comment-edit-photo-{{$id}}">