diff --git a/modules/admin/tpl/js/config.js b/modules/admin/tpl/js/config.js index d0cd2ef1a..2d8451d95 100644 --- a/modules/admin/tpl/js/config.js +++ b/modules/admin/tpl/js/config.js @@ -1,24 +1,28 @@ function completeGetFtpInfo(ret_obj) { - var e = jQuery("#ftplist").empty(); var list = ""; + if(!jQuery.isArray(ret_obj['list']['item'])) + { + ret_obj['list']['item'] = [ret_obj['list']['item']]; + } + + if(pwd != "/") + { + arr = pwd.split("/"); + arr.pop(); + arr.pop(); + arr.push(""); + target = arr.join("/"); + list = list + "
  • ../
  • "; + } + for(var i=0;i"+v+""; + continue; } else if( v == "./") { @@ -29,6 +33,7 @@ function completeGetFtpInfo(ret_obj) list = list + "
  • "+v+"
  • "; } } + list = ""; e.append(jQuery(list)); }