This commit is contained in:
Mr Chen
2018-11-12 11:41:00 +08:00
parent 30240443e6
commit 74fd4bbe08
5 changed files with 128 additions and 26 deletions
+3 -3
View File
@@ -334,7 +334,7 @@ function GetFiles(Path) {
var data = 'path=' + Path;
var loadT = layer.load();
var totalSize = 0;
$.post('/files?action=GetDir&tojs=GetFiles&p=' + p + '&showRow=' + showRow + search, data, function(rdata) {
$.post('/files/get_dir?tojs=GetFiles&p=' + p + '&showRow=' + showRow + search, data, function(rdata) {
layer.close(loadT);
var rows = ['100','200','500','1000','2000'];
@@ -781,14 +781,14 @@ function GetFileName(fileNameFull) {
//取磁盘
function GetDisk() {
var LBody = '';
$.get('/system?action=GetDiskInfo', function(rdata) {
$.get('/system/disk_info', function(rdata) {
for (var i = 0; i < rdata.length; i++) {
LBody += "<span onclick=\"GetFiles('" + rdata[i].path + "')\"><span class='glyphicon glyphicon-hdd'></span>&nbsp;" + (rdata[i].path=='/'?lan.files.path_root:rdata[i].path) + "(" + rdata[i].size[2] + ")</span>";
}
var trash = '<span id="recycle_bin" onclick="Recycle_bin(\'open\')" title="'+lan.files.recycle_bin_title+'" style="position: absolute; border-color: #ccc; right: 77px;"><span class="glyphicon glyphicon-trash"></span>&nbsp;'+lan.files.recycle_bin_title+'</span>';
$("#comlist").html(LBody+trash);
IsDiskWidth();
});
},'json');
}
//返回上一级