Added i18n to my javascript changes as per trac #417

This commit is contained in:
Emily O'Leary 2013-03-24 22:16:12 -04:00 committed by Rodney Ewing
parent 5ab6029961
commit bb3299ce21

View File

@ -22,7 +22,7 @@ function previewComment(){
content = $('#comment_content').val();
$.getJSON($('#previewURL').val(),JSON.stringify($('#comment_content').val()),
function(data){
$('#comment_preview').replaceWith("<div id=comment_preview><h3>Comment Preview</h3><br />" + decodeURIComponent(data) +
$('#comment_preview').replaceWith("<div id=comment_preview><h3>{% trans -%}Comment Preview{%- endtrans %}</h3><br />" + decodeURIComponent(data) +
"<hr style='border: 1px solid #333;' /></div>");
});
}