diff --git a/ifm.php b/ifm.php
index 4fe3dca..f588dbd 100644
--- a/ifm.php
+++ b/ifm.php
@@ -854,24 +854,25 @@ function IFM() {
};
this.extractFileDialog = function(name) {
- var fuckWorkarounds="";
+ var targetDirSuggestion="";
if(name.lastIndexOf(".") > 1)
- fuckWorkarounds = name.substr(0,name.length-4);
- else fuckWorkarounds = name;
- self.showModal( '
\
-
\
+ \
+ ');
};
this.extractFile = function(name, t) {
- var td = (t == 1)? name.substr(0,name.length-4) : "";
$.ajax({
url: self.IFM_SCFN,
type: "POST",
@@ -879,7 +880,7 @@ function IFM() {
api: "extractFile",
dir: self.currentDir,
filename: name,
- targetdir: td
+ targetdir: t
}),
dataType: "json",
success: function(data) {
diff --git a/src/ifm.js b/src/ifm.js
index eaab79d..1d0cc7f 100644
--- a/src/ifm.js
+++ b/src/ifm.js
@@ -386,24 +386,25 @@ function IFM() {
};
this.extractFileDialog = function(name) {
- var fuckWorkarounds="";
+ var targetDirSuggestion="";
if(name.lastIndexOf(".") > 1)
- fuckWorkarounds = name.substr(0,name.length-4);
- else fuckWorkarounds = name;
- self.showModal( '\
-
\
+ \
+ ');
};
this.extractFile = function(name, t) {
- var td = (t == 1)? name.substr(0,name.length-4) : "";
$.ajax({
url: self.IFM_SCFN,
type: "POST",
@@ -411,7 +412,7 @@ function IFM() {
api: "extractFile",
dir: self.currentDir,
filename: name,
- targetdir: td
+ targetdir: t
}),
dataType: "json",
success: function(data) {