Skip to content
Snippets Groups Projects
Commit 815f2390 authored by Robin Appelman's avatar Robin Appelman
Browse files

fix download links of newly uploaded files

parent 00711341
No related merge requests found
...@@ -157,7 +157,7 @@ $(document).ready(function() { ...@@ -157,7 +157,7 @@ $(document).ready(function() {
var uploadTime=monthNames[date.getMonth()]+' '+date.getDate()+', '+date.getFullYear()+', '+((date.getHours()<10)?'0':'')+date.getHours()+':'+date.getMinutes(); var uploadTime=monthNames[date.getMonth()]+' '+date.getDate()+', '+date.getFullYear()+', '+((date.getHours()<10)?'0':'')+date.getHours()+':'+date.getMinutes();
var html='<tr>'; var html='<tr>';
html+='<td class="selection"><input type="checkbox" /></td>'; html+='<td class="selection"><input type="checkbox" /></td>';
html+='<td class="filename"><a style="background-image:url(img/file.png)" href="ajax/download.php?file='+$('#dir').val()+'/'+name+'">'+name+'</a></td>'; html+='<td class="filename"><a style="background-image:url(img/file.png)" href="download.php?file='+$('#dir').val()+'/'+name+'">'+name+'</a></td>';
html+='<td class="filesize">'+size+'</td>'; html+='<td class="filesize">'+size+'</td>';
html+='<td class="date">'+uploadTime+'</td>'; html+='<td class="date">'+uploadTime+'</td>';
html+='<td class="fileaction"><a href="" title="+" class="dropArrow"></a></td>'; html+='<td class="fileaction"><a href="" title="+" class="dropArrow"></a></td>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment