1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 23:29:49 +00:00

added 'seaf' file view and edit with aloha;modified new-file

This commit is contained in:
llj
2012-11-20 16:28:33 +08:00
parent 1e79e72a54
commit 26b8f295db
242 changed files with 23141 additions and 21 deletions

View File

@@ -1219,7 +1219,7 @@ def repo_view_file(request, repo_id):
file_content = ''
swf_exists = False
pdf_use_flash = False
if filetype == 'Text' or filetype == 'Markdown':
if filetype == 'Text' or filetype == 'Markdown' or filetype == 'Sf':
err, file_content, encoding, newline_mode = repo_file_get(raw_path)
elif filetype == 'Document':
err, swf_exists = flash_prepare(raw_path, obj_id, fileext)
@@ -2407,7 +2407,7 @@ def view_shared_file(request, token):
file_content = ''
swf_exists = False
pdf_use_flash = False
if filetype == 'Text' or filetype == 'Markdown':
if filetype == 'Text' or filetype == 'Markdown' or filetype == 'Sf':
err, file_content, encoding, newline_mode = repo_file_get(raw_path)
elif filetype == 'Document':
err, swf_exists = flash_prepare(raw_path, obj_id, fileext)