1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 02:48:51 +00:00

[seahub] Added the ability to modify the format of the text preview suffix

This commit is contained in:
zming
2017-06-09 16:13:06 +08:00
parent 3966856060
commit 11f45979a5
6 changed files with 59 additions and 4 deletions

View File

@@ -1945,7 +1945,7 @@ def sys_settings(request):
if HAS_TWO_FACTOR_AUTH:
DIGIT_WEB_SETTINGS.append('ENABLE_TWO_FACTOR_AUTH')
STRING_WEB_SETTINGS = ('SERVICE_URL', 'FILE_SERVER_ROOT',)
STRING_WEB_SETTINGS = ('SERVICE_URL', 'FILE_SERVER_ROOT', 'TEXT_PREVIEW_EXT')
if request.is_ajax() and request.method == "POST":
content_type = 'application/json; charset=utf-8'