summaryrefslogtreecommitdiffstats
path: root/askbot/templates/meta
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-04-07 04:40:04 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-04-07 04:40:04 -0400
commitb03f881b11204b7e0fe323dd9148085ef0dfa35d (patch)
tree45fc9053dc3b7aa2ba5888b3ab26bfb22fc2b09e /askbot/templates/meta
parent580dce30624e7af950159e3f74f9181506b57a5d (diff)
downloadaskbot-b03f881b11204b7e0fe323dd9148085ef0dfa35d.tar.gz
askbot-b03f881b11204b7e0fe323dd9148085ef0dfa35d.tar.bz2
askbot-b03f881b11204b7e0fe323dd9148085ef0dfa35d.zip
allowed to choose plain text or rich text editor for the comments
Diffstat (limited to 'askbot/templates/meta')
-rw-r--r--askbot/templates/meta/bottom_scripts.html10
-rw-r--r--askbot/templates/meta/html_head_javascript.html9
2 files changed, 10 insertions, 9 deletions
diff --git a/askbot/templates/meta/bottom_scripts.html b/askbot/templates/meta/bottom_scripts.html
index 78e23d89..e7ccb822 100644
--- a/askbot/templates/meta/bottom_scripts.html
+++ b/askbot/templates/meta/bottom_scripts.html
@@ -30,6 +30,16 @@
askbot['settings']['minSearchWordLength'] = {{ min_search_word_length }};
askbot['settings']['mathjaxEnabled'] = {{ settings.ENABLE_MATHJAX|as_js_bool }};
askbot['settings']['sharingSuffixText'] = '{{ settings.SHARING_SUFFIX_TEXT|escape }}';
+ askbot['data']['maxCommentLength'] = {{ settings.MAX_COMMENT_LENGTH }};
+ askbot['settings']['editorType'] = '{{ settings.EDITOR_TYPE }}';
+ askbot['settings']['commentsEditorType'] = '{{ settings.COMMENTS_EDITOR_TYPE }}';
+ {% if settings.ALLOWED_UPLOAD_FILE_TYPES %}
+ askbot['settings']['allowedUploadFileTypes'] = [
+ "{{ settings.ALLOWED_UPLOAD_FILE_TYPES|join('", "')|replace('.','') }}"
+ ];
+ {% else %}
+ askbot['settings']['allowedUploadFileTypes'] = [];
+ {% endif %}
askbot['data']['haveFlashNotifications'] = {{ user_messages|as_js_bool }};
askbot['data']['activeTab'] = '{{ active_tab }}';
{% if search_state %}
diff --git a/askbot/templates/meta/html_head_javascript.html b/askbot/templates/meta/html_head_javascript.html
index 07a39f80..965dd350 100644
--- a/askbot/templates/meta/html_head_javascript.html
+++ b/askbot/templates/meta/html_head_javascript.html
@@ -13,17 +13,8 @@
{% else %}
askbot['data']['userReputation'] = 0;
{% endif %}
- askbot['data']['maxCommentLength'] = {{ settings.MAX_COMMENT_LENGTH }};
askbot['urls'] = {};
askbot['settings'] = {};
- askbot['settings']['editorType'] = '{{ settings.EDITOR_TYPE }}';
- {% if settings.ALLOWED_UPLOAD_FILE_TYPES %}
- askbot['settings']['allowedUploadFileTypes'] = [
- "{{ settings.ALLOWED_UPLOAD_FILE_TYPES|join('", "')|replace('.','') }}"
- ];
- {% else %}
- askbot['settings']['allowedUploadFileTypes'] = [];
- {% endif %}
askbot['messages'] = {};
</script>
<script type="text/javascript" src="{% url django.views.i18n.javascript_catalog %}"></script>