1
0
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:
Marco Dickert
2017-06-28 09:45:08 +02:00
parent 1559c53d76
commit a5f542e4ee
2 changed files with 4 additions and 4 deletions

View File

@@ -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">\

View File

@@ -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">\