diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-04-12 15:01:06 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-04-12 15:01:06 +0200 |
commit | c6873529f47985da2bed92aed7c01af30133221d (patch) | |
tree | c087c07321a7bb0483d655ff0f708685166d1c22 /view/tpl | |
parent | 70b109702ef20d0ebad027a98964ceae1fb216c3 (diff) | |
download | volse-hubzilla-c6873529f47985da2bed92aed7c01af30133221d.tar.gz volse-hubzilla-c6873529f47985da2bed92aed7c01af30133221d.tar.bz2 volse-hubzilla-c6873529f47985da2bed92aed7c01af30133221d.zip |
bring ajax delete to files
Diffstat (limited to 'view/tpl')
-rw-r--r-- | view/tpl/cloud_directory.tpl | 4 | ||||
-rw-r--r-- | view/tpl/sharedwithme.tpl | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/view/tpl/cloud_directory.tpl b/view/tpl/cloud_directory.tpl index 77d861224..c1d03da83 100644 --- a/view/tpl/cloud_directory.tpl +++ b/view/tpl/cloud_directory.tpl @@ -26,7 +26,7 @@ <td class="cloud-index-tool">{{$item.attachIcon}}</td> <td id="file-edit-{{$item.attachId}}" class="cloud-index-tool"></td> <td class="cloud-index-tool"><i class="fakelink icon-pencil" onclick="filestorage(event, '{{$nick}}', {{$item.attachId}});"></i></td> - <td class="cloud-index-tool"><a href="{{$item.fileStorageUrl}}/{{$item.attachId}}/delete" title="{{$delete}}" onclick="return confirmDelete();"><i class="icon-trash drop-icons"></i></a></td> + <td class="cloud-index-tool"><a href="#" title="{{$delete}}" onclick="dropItem('{{$item.fileStorageUrl}}/{{$item.attachId}}/delete', '#cloud-index-{{$item.attachId}},#cloud-tools-{{$item.attachId}}'); return false;"><i class="icon-trash drop-icons"></i></a></td> {{else}} <td></td><td></td><td></td><td></td> @@ -35,7 +35,7 @@ <td class="hidden-xs">{{$item.sizeFormatted}}</td> <td class="hidden-xs">{{$item.lastmodified}}</td> </tr> - <tr> + <tr id="cloud-tools-{{$item.attachId}}"> <td id="perms-panel-{{$item.attachId}}" colspan="9"></td> </tr> {{/foreach}} diff --git a/view/tpl/sharedwithme.tpl b/view/tpl/sharedwithme.tpl index 4502df276..cb365ed05 100644 --- a/view/tpl/sharedwithme.tpl +++ b/view/tpl/sharedwithme.tpl @@ -15,7 +15,7 @@ <tr id="cloud-index-{{$item.id}}"> <td><i class="{{$item.objfiletypeclass}}" title="{{$item.objfiletype}}"></i></td> <td><a href="{{$item.objurl}}">{{$item.objfilename}}</a>{{if $item.unseen}} <span class="label label-success">{{$label_new}}</span>{{/if}}</td> - <td class="cloud-index-tool"><a href="/sharedwithme/{{$item.id}}/drop" title="{{$drop}}" onclick="return confirmDelete();"><i class="icon-trash drop-icons"></i></a></td> + <td class="cloud-index-tool"><a href="#" title="{{$drop}}" onclick="dropItem('/sharedwithme/{{$item.id}}/drop', '#cloud-index-{{$item.id}}'); return false;"><i class="icon-trash drop-icons"></i></a></td> <td class="hidden-xs">{{$item.objfilesize}}</td> <td class="hidden-xs">{{$item.objedited}}</td> </tr> |