提交 cb1a1660 编写于 作者: C Catouse

* add download attribute to file download button.

上级 0b4a58fe
......@@ -503,7 +503,7 @@ else if(r instanceof a){if(r.hasBlob())if(r.getBlob().isDetached())r=d.call(s,r)
$file.find('.btn-rename-file').attr('title', that.lang.rename);
$file.find('.btn-delete-file').attr('title', that.lang.remove);
$file.find('.btn-reset-file').attr('title', that.lang.repeat);
$file.find('.btn-download-file').attr('title', that.lang.download);
$file.find('.btn-download-file').attr('title', that.lang.download).attr('download', file.name);
}
$file.data('id', file.id)
.toggleClass('file-static', !!file.static)
......
......@@ -466,7 +466,7 @@
$file.find('.btn-rename-file').attr('title', that.lang.rename);
$file.find('.btn-delete-file').attr('title', that.lang.remove);
$file.find('.btn-reset-file').attr('title', that.lang.repeat);
$file.find('.btn-download-file').attr('title', that.lang.download);
$file.find('.btn-download-file').attr('title', that.lang.download).attr('download', file.name);
}
$file.data('id', file.id)
.toggleClass('file-static', !!file.static)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册