Commit 0c9ce6b8 authored by stef's avatar stef
Browse files

[fix] for #12 for non-dev django

parent 61a98d5e
......@@ -23,12 +23,11 @@ function bindPostCommentHandler() {
cache: false,
dataType: "html",
success: function(html, textStatus) {
$('#comment_form form').replaceWith(html+" "+"{% trans "It will appear here after moderation." %}");
$('#comment_form form').replaceWith(html+" "+"{% trans 'It will appear here after moderation.' %}");
bindPostCommentHandler();
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
{% trans "Your comment was unable to be posted at this time. We apologise for the inconvenience." as msg %}
$('#comment_form form').replaceWith('{{msg|addslashes}}');
$('#comment_form form').replaceWith("{% trans 'Your comment was unable to be posted at this time. We apologise for the inconvenience.' %}");
}
});
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment