summaryrefslogtreecommitdiffstats
path: root/askbot/templates/question.html
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-11-26 11:28:59 -0300
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-11-26 11:28:59 -0300
commitddc60c4eb1d0693975aba37f72c9f8fde55299bc (patch)
tree3bf50fa4bb4e0745d741b2f310275d4a5de59a06 /askbot/templates/question.html
parentd0d895aa37a2640aa7a8f033541abbca5bd5e71e (diff)
downloadaskbot-ddc60c4eb1d0693975aba37f72c9f8fde55299bc.tar.gz
askbot-ddc60c4eb1d0693975aba37f72c9f8fde55299bc.tar.bz2
askbot-ddc60c4eb1d0693975aba37f72c9f8fde55299bc.zip
fixed hardcoded maximum comment length in the answer -> comment conversion
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{