]> git.mxchange.org Git - friendica.git/commitdiff
Fix for vier theme / NonAjax Call
authorJonny Tischbein <jonny_tischbein@systemli.org>
Fri, 26 Oct 2018 12:05:59 +0000 (14:05 +0200)
committerJonny Tischbein <jonny_tischbein@systemli.org>
Wed, 31 Oct 2018 19:09:44 +0000 (20:09 +0100)
mod/item.php
view/theme/vier/templates/wall_thread.tpl

index 2aaa3a38f0053f4251914a9f63d8f93fc7ff332a..54ef53a4b87961484b91de0241d3c7ce594dfa67 100644 (file)
@@ -885,7 +885,12 @@ function item_content(App $a)
                if ($a->isAjax()) {
                        $o = Item::deleteForUser(['id' => $a->argv[2]], local_user());
                } else {
-                       $o = drop_item($a->argv[2], $a->argv[3]);
+                       if (!empty($a->argv[3])) {
+                               $o = drop_item($a->argv[2], $a->argv[3]);
+                       }
+                       else {
+                               $o = drop_item($a->argv[2]);
+                       }
                }
 
                if ($a->isAjax()) {
index 6c636d53b6000eb159250888ee5ef3286220ae7c..8debce36497f4c7e9d95cae90e852614bf6fb4e9 100644 (file)
@@ -1,4 +1,3 @@
-
 {{if $mode == display}}
 {{else}}
 {{if $item.comment_firstcollapsed}}
                                        <input type="checkbox" title="{{$item.drop.select}}" name="itemselected[]" class="item-select" value="{{$item.id}}" />
                                {{/if}}
                                {{if $item.drop.dropping}}
-                                       <a role="button" href="item/drop/{{$item.id}}" onclick="return confirmDelete();" title="{{$item.drop.delete}}"><i class="icon-trash icon-large"><span class="sr-only">{{$item.drop.delete}}</span></i></a>
+                                       <a role="button" href="item/drop/{{$item.id}}/{{$item.return}}" onclick="return confirmDelete();" title="{{$item.drop.delete}}"><i class="icon-trash icon-large"><span class="sr-only">{{$item.drop.delete}}</span></i></a>
                                {{/if}}
                                {{if $item.edpost}}
                                        <a role="button" href="{{$item.edpost.0}}" title="{{$item.edpost.1}}"><i class="icon-edit icon-large"><span class="sr-only">{{$item.edpost.1}}</span></i></a>