From fbd02dc026ac64ef45a9aa9a84dac58a99d01966 Mon Sep 17 00:00:00 2001 From: yanxd Date: Fri, 17 Jan 2014 11:13:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E8=AE=BA=E5=9D=9B=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/stores/index.html.erb | 2 +- app/views/stores/search.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/stores/index.html.erb b/app/views/stores/index.html.erb index ecdc3c290..e2d65c326 100644 --- a/app/views/stores/index.html.erb +++ b/app/views/stores/index.html.erb @@ -27,7 +27,7 @@ <%= link_to c1.filename, (attachFromUrl c1), {:title => c1.filename, :target => "_blank"} %> <%= c1.downloads %> - <%= link_to_attachment c1, {:text => image_tag("/images/button/download.png", width: "22px", alt: l(:button_download)) }%> + <%= link_to_attachment c1, {:download => true, :text => image_tag("/images/button/download.png", width: "22px", alt: l(:button_download)) }%> <% end %> diff --git a/app/views/stores/search.html.erb b/app/views/stores/search.html.erb index f285fcb67..ae152d478 100644 --- a/app/views/stores/search.html.erb +++ b/app/views/stores/search.html.erb @@ -19,7 +19,7 @@
<%= result.filename %> - <%= link_to_attachment result, {:text => image_tag("/images/button/dl.png", width: "70px", alt: l(:button_download), :class => 'download_icon')}%> + <%= link_to_attachment result, {:download => true, :text => image_tag("/images/button/dl.png", width: "70px", alt: l(:button_download), :class => 'download_icon')}%>
<%= result.description %>