Fix for vier theme / NonAjax Call
This commit is contained in:
parent
b66bcb20da
commit
6b43174a74
|
@ -885,7 +885,12 @@ function item_content(App $a)
|
||||||
if ($a->isAjax()) {
|
if ($a->isAjax()) {
|
||||||
$o = Item::deleteForUser(['id' => $a->argv[2]], local_user());
|
$o = Item::deleteForUser(['id' => $a->argv[2]], local_user());
|
||||||
} else {
|
} 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()) {
|
if ($a->isAjax()) {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
{{if $mode == display}}
|
{{if $mode == display}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{if $item.comment_firstcollapsed}}
|
{{if $item.comment_firstcollapsed}}
|
||||||
|
@ -146,7 +145,7 @@
|
||||||
<input type="checkbox" title="{{$item.drop.select}}" name="itemselected[]" class="item-select" value="{{$item.id}}" />
|
<input type="checkbox" title="{{$item.drop.select}}" name="itemselected[]" class="item-select" value="{{$item.id}}" />
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{if $item.drop.dropping}}
|
{{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}}
|
||||||
{{if $item.edpost}}
|
{{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>
|
<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>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user