diff --git a/modules/admin/tpl/config.html b/modules/admin/tpl/config.html index 9898ac867..5aaa6c305 100644 --- a/modules/admin/tpl/config.html +++ b/modules/admin/tpl/config.html @@ -174,7 +174,7 @@
{$lang->msg_ftp_installed_ftp_realpath}
- + diff --git a/modules/admin/tpl/js/config.js b/modules/admin/tpl/js/config.js index 739e59042..d0cd2ef1a 100644 --- a/modules/admin/tpl/js/config.js +++ b/modules/admin/tpl/js/config.js @@ -6,7 +6,28 @@ function completeGetFtpInfo(ret_obj) for(var i=0;i"+v+""; + if(v == "../") + { + if(pwd == "/") + { + continue; + } + + arr = pwd.split("/"); + arr.pop(); + arr.pop(); + arr.push(""); + target = arr.join("/"); + list = list + "
  • "+v+"
  • "; + } + else if( v == "./") + { + continue; + } + else + { + list = list + "
  • "+v+"
  • "; + } } list = ""; e.append(jQuery(list));