下载跳出新页面
This commit is contained in:
parent
ad09978020
commit
41ed28c6b7
|
@ -27,7 +27,7 @@
|
|||
<td class="filename" style="width:62%;"><%= link_to c1.filename, (attachFromUrl c1), {:title => c1.filename, :target => "_blank"} %> </td>
|
||||
<td style="width:19%; text-align: center;"><%= c1.downloads %> </td>
|
||||
<td class="filename download_icon" style="width:19%; text-align: center;">
|
||||
<%= link_to_attachment c1, {:text => image_tag("/images/button/download.png", width: "22px", alt: "l(:button_download)") }%>
|
||||
<%= link_to_attachment c1, {:text => image_tag("/images/button/download.png", width: "22px", alt: l(:button_download)) }%>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
@ -38,6 +38,7 @@
|
|||
</div>
|
||||
<script type='text/javascript'>
|
||||
$(document).ready(function($) {
|
||||
$('.download_icon').find("a").attr("target", "_blank");
|
||||
$('.download_icon').each(function(){
|
||||
$(this).mouseenter(function(event) {
|
||||
$(this).find('img').attr("src", "/images/button/download_focus.png")
|
||||
|
|
Loading…
Reference in New Issue