aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/cloud_directory.tpl
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-03-18 15:46:30 +0000
committerMario <mario@mariovavti.com>2023-03-18 15:46:30 +0000
commit2f5fa4df75526bcb343ba0d133b593095bcca7c3 (patch)
treeda914e1264e53831e44ec526016df1ba242d65ed /view/tpl/cloud_directory.tpl
parent20735083b30b1572acd02594de1c9f758ac4958a (diff)
downloadvolse-hubzilla-2f5fa4df75526bcb343ba0d133b593095bcca7c3.tar.gz
volse-hubzilla-2f5fa4df75526bcb343ba0d133b593095bcca7c3.tar.bz2
volse-hubzilla-2f5fa4df75526bcb343ba0d133b593095bcca7c3.zip
add the download attribute to prevent onbeforeunload
Diffstat (limited to 'view/tpl/cloud_directory.tpl')
-rw-r--r--view/tpl/cloud_directory.tpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/view/tpl/cloud_directory.tpl b/view/tpl/cloud_directory.tpl
index a851eb203..587adaeea 100644
--- a/view/tpl/cloud_directory.tpl
+++ b/view/tpl/cloud_directory.tpl
@@ -175,7 +175,7 @@
{{if $is_owner}}
<a id="cloud-tool-share-btn-{{$item.attach_id}}" class="dropdown-item cloud-tool-share-btn" href="/rpost?attachment=[attachment]{{$item.resource}},{{$item.revision}}[/attachment]&acl[allow_cid]={{$item.raw_allow_cid}}&acl[allow_gid]={{$item.raw_allow_gid}}&acl[deny_cid]={{$item.raw_deny_cid}}&acl[deny_gid]={{$item.raw_deny_gid}}" data-id="{{$item.attach_id}}"><i class="fa fa-fw fa-share-square-o"></i> {{$post_label}}</a>
{{/if}}
- <a id="cloud-tool-download-btn-{{$item.attach_id}}" class="dropdown-item cloud-tool-download-btn" href="/attach/{{$item.resource}}" data-id="{{$item.attach_id}}"><i class="fa fa-fw fa-cloud-download"></i> {{$download_label}}</a>
+ <a download="{{$item.name}}" id="cloud-tool-download-btn-{{$item.attach_id}}" class="dropdown-item cloud-tool-download-btn" href="/attach/{{$item.resource}}" data-id="{{$item.attach_id}}"><i class="fa fa-fw fa-cloud-download"></i> {{$download_label}}</a>
{{/if}}
<a id="cloud-tool-delete-btn-{{$item.attach_id}}" class="dropdown-item cloud-tool-delete-btn" href="#" data-id="{{$item.attach_id}}"><i class="fa fa-fw fa-trash-o"></i> {{$delete_label}}</a>
</div>