|
|
|
@ -136,6 +136,7 @@ public class FileModule extends BaseHandler implements FileService { |
|
|
|
if (file.isDirectory()){ |
|
|
|
if (file.isDirectory()){ |
|
|
|
Map<String,Object> map = getDirectory(file); |
|
|
|
Map<String,Object> map = getDirectory(file); |
|
|
|
map.put("title",filename.replace("/company/"+cpId,company.name())); |
|
|
|
map.put("title",filename.replace("/company/"+cpId,company.name())); |
|
|
|
|
|
|
|
map.put("delete",true); |
|
|
|
return sendContent(ex,map); |
|
|
|
return sendContent(ex,map); |
|
|
|
} |
|
|
|
} |
|
|
|
return getFile(ex, file); |
|
|
|
return getFile(ex, file); |
|
|
|
@ -192,6 +193,7 @@ public class FileModule extends BaseHandler implements FileService { |
|
|
|
if (file.isDirectory()){ |
|
|
|
if (file.isDirectory()){ |
|
|
|
Map<String,Object> map = getDirectory(file); |
|
|
|
Map<String,Object> map = getDirectory(file); |
|
|
|
map.put("title",filename.replace("/project/"+prjId,project.name())); |
|
|
|
map.put("title",filename.replace("/project/"+prjId,project.name())); |
|
|
|
|
|
|
|
map.put("delete",true); |
|
|
|
return sendContent(ex,map); |
|
|
|
return sendContent(ex,map); |
|
|
|
} |
|
|
|
} |
|
|
|
return getFile(ex, file); |
|
|
|
return getFile(ex, file); |
|
|
|
@ -214,6 +216,7 @@ public class FileModule extends BaseHandler implements FileService { |
|
|
|
if (file.isDirectory()){ |
|
|
|
if (file.isDirectory()){ |
|
|
|
Map<String,Object> map = getDirectory(file); |
|
|
|
Map<String,Object> map = getDirectory(file); |
|
|
|
map.put("title",filename); |
|
|
|
map.put("title",filename); |
|
|
|
|
|
|
|
map.put("delete",true); |
|
|
|
return sendContent(ex,map); |
|
|
|
return sendContent(ex,map); |
|
|
|
} |
|
|
|
} |
|
|
|
return getFile(ex, file); |
|
|
|
return getFile(ex, file); |
|
|
|
|