summaryrefslogtreecommitdiffstats
path: root/askbot/templates/question.html
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/templates/question.html')
-rw-r--r--askbot/templates/question.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/askbot/templates/question.html b/askbot/templates/question.html
index 57c71068..5a317707 100644
--- a/askbot/templates/question.html
+++ b/askbot/templates/question.html
@@ -63,7 +63,10 @@
var answer_id = 'post-id-' + post_id;
var answer_container = document.getElementById(answer_id);
var answer_element= answer_container.getElementsByClassName('answer-body')[0].children[1];
- if (answer_element.textContent.length > 300){
+ if (
+ answer_element.textContent.length >
+ askbot['data']['maxCommentLength']
+ ){
convert_answer.parentNode.removeChild(convert_answer);
}
} else{