diff --git a/route/static/app/files.js b/route/static/app/files.js
index af4e52df7..26756a9c2 100755
--- a/route/static/app/files.js
+++ b/route/static/app/files.js
@@ -43,7 +43,7 @@ function recycleBin(type){
if(shortwebname.length > 20) shortwebname = shortwebname.substring(0, 20) + "...";
if(shortpath.length > 20) shortpath = shortpath.substring(0, 20) + "...";
body += '
\
- | '+shortwebname.replace('BTDB_','')+' | \
+ '+shortwebname.replace('BTDB_','')+' | \
mysql://'+shortpath.replace('BTDB_','')+' | \
- | \
'+getLocalTime(rdata.files[i].time)+' | \
@@ -60,7 +60,7 @@ function recycleBin(type){
if(shortwebname.length > 20) shortwebname = shortwebname.substring(0, 20) + "...";
if(shortpath.length > 20) shortpath = shortpath.substring(0, 20) + "...";
body += '
\
- | '+shortwebname+' | \
+ '+shortwebname+' | \
'+shortpath+' | \
'+toSize(rdata.files[i].size)+' | \
'+getLocalTime(rdata.files[i].time)+' | \
@@ -101,7 +101,7 @@ function recycleBin(type){
if(shortwebname.length > 20) shortwebname = shortwebname.substring(0, 20) + "...";
if(shortpath.length > 20) shortpath = shortpath.substring(0, 20) + "...";
body += '
\
- | '+shortwebname+' | \
+ '+shortwebname+' | \
'+shortpath+' | \
'+toSize(rdata.files[i].size)+' | \
'+getLocalTime(rdata.files[i].time)+' | \
@@ -122,7 +122,7 @@ function recycleBin(type){
if(shortwebname.length > 20) shortwebname = shortwebname.substring(0, 20) + "...";
if(shortpath.length > 20) shortpath = shortpath.substring(0, 20) + "...";
body += '
\
- | '+shortwebname+' | \
+ '+shortwebname+' | \
'+shortpath+' | \
'+toSize(rdata.files[i].size)+' | \
'+getLocalTime(rdata.files[i].time)+' | \
@@ -145,7 +145,7 @@ function recycleBin(type){
if(shortwebname.length > 20) shortwebname = shortwebname.substring(0, 20) + "...";
if(shortpath.length > 20) shortpath = shortpath.substring(0, 20) + "...";
body += '
\
- | '+shortwebname+' | \
+ '+shortwebname+' | \
'+shortpath+' | \
'+toSize(rdata.files[i].size)+' | \
'+getLocalTime(rdata.files[i].time)+' | \
@@ -398,7 +398,7 @@ function getFiles(Path) {
totalSize += parseInt(fmp[1]);
if(getCookie("rank")=="a"){
Body += "
| \
- " + cnametext + " | \
+ " + cnametext + " | \
" + (toSize(fmp[1])) + " | \
" + ((fmp[2].length > 11)?fmp[2]:getLocalTime(fmp[2])) + " | \
"+fmp[3]+" | \
@@ -416,14 +416,14 @@ function getFiles(Path) {
else{
Body += "";
}
}
var dirInfo = '('+lan.files.get_size.replace('{1}',rdata.DIR.length+'').replace('{2}',rdata.DIR.length+'')+''+(toSize(totalSize))+'获取)';
$("#DirInfo").html(dirInfo);
- if(getCookie("rank")=="a"){
+ if(getCookie('rank')=='a'){
var tablehtml = '\
\
\
@@ -451,16 +451,16 @@ function getFiles(Path) {
'+lan.files.new+' \
\
\
';
if (rdata.PATH != '/') {
- BarTools += ' ';
+ BarTools += ' ';
}
setCookie('open_dir_path',rdata.PATH);
- BarTools += ' \
- ';
+ BarTools += ' \
+ ';
var copyName = getCookie('copyFileName');
var cutName = getCookie('cutFileName');
var isPaste = (copyName == 'null') ? cutName : copyName;
@@ -544,7 +544,7 @@ function getFiles(Path) {
setCookie('showRow',$(this).val());
getFiles(p);
});
- PathPlaceBtn(rdata.PATH);
+ pathPlaceBtn(rdata.PATH);
},'json');
setTimeout(function(){getCookie('open_dir_path');},200);
}
@@ -633,7 +633,7 @@ window.onresize = function(){
if($(window).width()<1160){
$("#PathPlaceBtn,#DirPathPlace input").width(290);
}
- PathLeft();
+ pathLeft();
isDiskWidth();
}
@@ -731,7 +731,7 @@ function BatchPasteTo(data,path){
//取扩展名
-function GetExtName(fileName){
+function getExtName(fileName){
var extArr = fileName.split(".");
var exts = ['folder','folder-unempty','sql','c','cpp','cs','flv','css','js','htm','html','java','log','mht','php','url','xml','ai','bmp','cdr','gif','ico','jpeg','jpg','JPG','png','psd','webp','ape','avi','flv','mkv','mov','mp3','mp4','mpeg','mpg','rm','rmvb','swf','wav','webm','wma','wmv','rtf','docx','fdf','potm','pptx','txt','xlsb','xlsx','7z','cab','iso','rar','zip','gz','bt','file','apk','bookfolder','folder','folder-empty','folder-unempty','fromchromefolder','documentfolder','fromphonefolder','mix','musicfolder','picturefolder','videofolder','sefolder','access','mdb','accdb','sql','c','cpp','cs','js','fla','flv','htm','html','java','log','mht','php','url','xml','ai','bmp','cdr','gif','ico','jpeg','jpg','JPG','png','psd','webp','ape','avi','flv','mkv','mov','mp3','mp4','mpeg','mpg','rm','rmvb','swf','wav','webm','wma','wmv','doc','docm','dotx','dotm','dot','rtf','docx','pdf','fdf','ppt','pptm','pot','potm','pptx','txt','xls','csv','xlsm','xlsb','xlsx','7z','gz','cab','iso','rar','zip','bt','file','apk','css'];
var extLastName = extArr[extArr.length - 1];
@@ -773,7 +773,7 @@ function getDisk() {
}
//返回上一级
-function BackDir() {
+function backDir() {
var str = $("#DirPathPlace input").val().replace('//','/');
if(str.substr(str.length-1,1) == '/'){
str = str.substr(0,str.length-1);
@@ -793,7 +793,7 @@ function BackDir() {
back += Path[0];
getFiles(back);
}
- setTimeout('PathPlaceBtn(getCookie("Path"));',200);
+ setTimeout('pathPlaceBtn(getCookie("open_dir_path"));',200);
}
//新建文件
function createFile(type, path) {
@@ -1475,7 +1475,7 @@ $("#DirPathPlace input").keyup(function(e){
}
});
-function PathPlaceBtn(path){
+function pathPlaceBtn(path){
var html = '';
var title = '';
var Dpath = path;
@@ -1502,10 +1502,10 @@ function PathPlaceBtn(path){
getFiles(Gopath);
e.stopPropagation();
});
- PathLeft();
+ pathLeft();
}
//计算当前目录偏移
-function PathLeft(){
+function pathLeft(){
var UlWidth = $("#PathPlaceBtn ul").width();
var SpanPathWidth = $("#PathPlaceBtn").width() - 50;
var Ml = UlWidth - SpanPathWidth;
diff --git a/route/templates/default/files.html b/route/templates/default/files.html
index eb23f3b0f..88e367e95 100755
--- a/route/templates/default/files.html
+++ b/route/templates/default/files.html
@@ -67,7 +67,7 @@ setTimeout(function() {
getFiles((xPath != undefined ? xPath : '/www/wwwroot'));
}, 800);
-PathPlaceBtn((xPath != undefined ? xPath : '/www/wwwroot'));
+pathPlaceBtn((xPath != undefined ? xPath : '/www/wwwroot'));
setCookie('uploadSize', 1024 * 1024 * 1024);
if (getCookie('rank') == undefined || getCookie('rank') == null) {
setCookie('rank', 'a');