Commit 61a98d5e authored by stef's avatar stef
Browse files

[fix] for #12

parent b5cab3e7
......@@ -27,7 +27,8 @@ function bindPostCommentHandler() {
bindPostCommentHandler();
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
$('#comment_form form').replaceWith('{% trans "Your comment was unable to be posted at this time. We apologise for the inconvenience." %}');
{% trans "Your comment was unable to be posted at this time. We apologise for the inconvenience." as msg %}
$('#comment_form form').replaceWith('{{msg|addslashes}}');
}
});
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