mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-10 10:04:01 +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 ) {
|
||||
newRow += ' href="'+self.pathCombine(ifm.currentDir,data[i].name)+'"';
|
||||
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 {
|
||||
newRow += ' onclick="$(\'#d_'+guid+'\').submit();"';
|
||||
}
|
||||
@@ -848,7 +848,7 @@ function IFM() {
|
||||
|
||||
this.extractFileDialog = function(name) {
|
||||
var fuckWorkarounds="";
|
||||
if(fuckWorkarounds.lastIndexOf(".") > 1)
|
||||
if(name.lastIndexOf(".") > 1)
|
||||
fuckWorkarounds = name.substr(0,name.length-4);
|
||||
else fuckWorkarounds = name;
|
||||
self.showModal( '<div class="modal-body">\
|
||||
|
@@ -68,7 +68,7 @@ function IFM() {
|
||||
if( self.isDocroot ) {
|
||||
newRow += ' href="'+self.pathCombine(ifm.currentDir,data[i].name)+'"';
|
||||
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 {
|
||||
newRow += ' onclick="$(\'#d_'+guid+'\').submit();"';
|
||||
}
|
||||
@@ -387,7 +387,7 @@ function IFM() {
|
||||
|
||||
this.extractFileDialog = function(name) {
|
||||
var fuckWorkarounds="";
|
||||
if(fuckWorkarounds.lastIndexOf(".") > 1)
|
||||
if(name.lastIndexOf(".") > 1)
|
||||
fuckWorkarounds = name.substr(0,name.length-4);
|
||||
else fuckWorkarounds = name;
|
||||
self.showModal( '<div class="modal-body">\
|
||||
|
Reference in New Issue
Block a user