fix download links of newly uploaded files

This commit is contained in:
Robin Appelman 2011-06-03 02:54:54 +02:00
parent 00711341e9
commit 815f239014
1 changed files with 1 additions and 1 deletions

View File

@ -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>';