mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-30 19:09:50 +02:00
fixed broken download button
This commit is contained in:
2
ifm.php
2
ifm.php
@@ -511,7 +511,7 @@ function IFM() {
|
|||||||
newRow += '<input type="hidden" name="dir" value="' + self.currentDir + '">';
|
newRow += '<input type="hidden" name="dir" value="' + self.currentDir + '">';
|
||||||
newRow += '<input type="hidden" name="filename" value="' + ( data[i].name == '..' ? '.' : data[i].name ) + '">';
|
newRow += '<input type="hidden" name="filename" value="' + ( data[i].name == '..' ? '.' : data[i].name ) + '">';
|
||||||
newRow += '<input type="hidden" name="api" value="' + ( data[i].type == 'file'?'downloadFile':'zipnload' ) + '">';
|
newRow += '<input type="hidden" name="api" value="' + ( data[i].type == 'file'?'downloadFile':'zipnload' ) + '">';
|
||||||
newRow += '</form><a onclick="$(\'#d_'+i+'\').submit();"><span class="icon icon-download' + ( data[i].type == 'dir'?'-cloud':'' ) + '" title="download"></span></a></td>';
|
newRow += '</form><a tabindex="0" onclick="$(\'#d_'+guid+'\').submit();"><span class="icon icon-download' + ( data[i].type == 'dir'?'-cloud':'' ) + '" title="download"></span></a></td>';
|
||||||
} else {
|
} else {
|
||||||
newRow += '<td></td>';
|
newRow += '<td></td>';
|
||||||
}
|
}
|
||||||
|
@@ -76,7 +76,7 @@ function IFM() {
|
|||||||
newRow += '<input type="hidden" name="dir" value="' + self.currentDir + '">';
|
newRow += '<input type="hidden" name="dir" value="' + self.currentDir + '">';
|
||||||
newRow += '<input type="hidden" name="filename" value="' + ( data[i].name == '..' ? '.' : data[i].name ) + '">';
|
newRow += '<input type="hidden" name="filename" value="' + ( data[i].name == '..' ? '.' : data[i].name ) + '">';
|
||||||
newRow += '<input type="hidden" name="api" value="' + ( data[i].type == 'file'?'downloadFile':'zipnload' ) + '">';
|
newRow += '<input type="hidden" name="api" value="' + ( data[i].type == 'file'?'downloadFile':'zipnload' ) + '">';
|
||||||
newRow += '</form><a onclick="$(\'#d_'+i+'\').submit();"><span class="icon icon-download' + ( data[i].type == 'dir'?'-cloud':'' ) + '" title="download"></span></a></td>';
|
newRow += '</form><a tabindex="0" onclick="$(\'#d_'+guid+'\').submit();"><span class="icon icon-download' + ( data[i].type == 'dir'?'-cloud':'' ) + '" title="download"></span></a></td>';
|
||||||
} else {
|
} else {
|
||||||
newRow += '<td></td>';
|
newRow += '<td></td>';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user