mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-10 18:14:00 +02:00
fixed broken image preview, fixed predefined extraction paths
This commit is contained in:
4
ifm.php
4
ifm.php
@@ -529,7 +529,7 @@ function IFM() {
|
|||||||
if( self.isDocroot ) {
|
if( self.isDocroot ) {
|
||||||
newRow += ' href="'+self.pathCombine(ifm.currentDir,data[i].name)+'"';
|
newRow += ' href="'+self.pathCombine(ifm.currentDir,data[i].name)+'"';
|
||||||
if( data[i].icon.indexOf( 'file-image' ) !== -1 )
|
if( data[i].icon.indexOf( 'file-image' ) !== -1 )
|
||||||
newRow += ' data-toggle="tooltip" title="<img src=\''+self.pathCombine(self.currentDir,data[i].name)+'\' class=\'imgpreview\'"';
|
newRow += ' data-toggle="tooltip" title="<img src=\''+self.pathCombine(self.currentDir,data[i].name)+'\' class=\'imgpreview\'>"';
|
||||||
} else {
|
} else {
|
||||||
newRow += ' onclick="$(\'#d_'+guid+'\').submit();"';
|
newRow += ' onclick="$(\'#d_'+guid+'\').submit();"';
|
||||||
}
|
}
|
||||||
@@ -848,7 +848,7 @@ function IFM() {
|
|||||||
|
|
||||||
this.extractFileDialog = function(name) {
|
this.extractFileDialog = function(name) {
|
||||||
var fuckWorkarounds="";
|
var fuckWorkarounds="";
|
||||||
if(fuckWorkarounds.lastIndexOf(".") > 1)
|
if(name.lastIndexOf(".") > 1)
|
||||||
fuckWorkarounds = name.substr(0,name.length-4);
|
fuckWorkarounds = name.substr(0,name.length-4);
|
||||||
else fuckWorkarounds = name;
|
else fuckWorkarounds = name;
|
||||||
self.showModal( '<div class="modal-body">\
|
self.showModal( '<div class="modal-body">\
|
||||||
|
@@ -68,7 +68,7 @@ function IFM() {
|
|||||||
if( self.isDocroot ) {
|
if( self.isDocroot ) {
|
||||||
newRow += ' href="'+self.pathCombine(ifm.currentDir,data[i].name)+'"';
|
newRow += ' href="'+self.pathCombine(ifm.currentDir,data[i].name)+'"';
|
||||||
if( data[i].icon.indexOf( 'file-image' ) !== -1 )
|
if( data[i].icon.indexOf( 'file-image' ) !== -1 )
|
||||||
newRow += ' data-toggle="tooltip" title="<img src=\''+self.pathCombine(self.currentDir,data[i].name)+'\' class=\'imgpreview\'"';
|
newRow += ' data-toggle="tooltip" title="<img src=\''+self.pathCombine(self.currentDir,data[i].name)+'\' class=\'imgpreview\'>"';
|
||||||
} else {
|
} else {
|
||||||
newRow += ' onclick="$(\'#d_'+guid+'\').submit();"';
|
newRow += ' onclick="$(\'#d_'+guid+'\').submit();"';
|
||||||
}
|
}
|
||||||
@@ -387,7 +387,7 @@ function IFM() {
|
|||||||
|
|
||||||
this.extractFileDialog = function(name) {
|
this.extractFileDialog = function(name) {
|
||||||
var fuckWorkarounds="";
|
var fuckWorkarounds="";
|
||||||
if(fuckWorkarounds.lastIndexOf(".") > 1)
|
if(name.lastIndexOf(".") > 1)
|
||||||
fuckWorkarounds = name.substr(0,name.length-4);
|
fuckWorkarounds = name.substr(0,name.length-4);
|
||||||
else fuckWorkarounds = name;
|
else fuckWorkarounds = name;
|
||||||
self.showModal( '<div class="modal-body">\
|
self.showModal( '<div class="modal-body">\
|
||||||
|
Reference in New Issue
Block a user