1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-22 11:57:34 +00:00

[markdown edit] added 'add a file'; fixed UI for 'link', 'image' popup

This commit is contained in:
llj
2016-10-24 18:15:43 +08:00
parent 0128cc25ad
commit 6e0e306f93
3 changed files with 146 additions and 17 deletions

View File

@@ -141,15 +141,15 @@ def get_dirents(request, repo_id):
for dirent in dirents:
if stat.S_ISDIR(dirent.mode):
subdir = {
'name': dirent.obj_name
'name': dirent.obj_name,
'type': 'dir'
}
d_list.append(subdir)
else:
if not dir_only:
f = {
'id': dirent.obj_id,
'name': dirent.obj_name,
'type': 'file',
'type': 'file'
}
f_list.append(f)