diff --git a/public/scripts/main.js b/public/scripts/main.js index c2a3b3912..022d0091b 100644 --- a/public/scripts/main.js +++ b/public/scripts/main.js @@ -625,10 +625,16 @@ function init_confirm_action() { function init_print_action() { $('.print-article').click(function () { + var content = "" + + $(".flux.current .content").html() + + ""; - var content = $(".flux.current .content"); var tmp_window = window.open(); - tmp_window.document.writeln(content.html()); + tmp_window.document.writeln(content); tmp_window.document.close(); tmp_window.focus(); tmp_window.print();