From ddb9650b5dde683aaa749ab1e119e48e18cb99a5 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Thu, 28 Nov 2013 20:27:48 +0100 Subject: Ajoute un peu de CSS à la page d'impression MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Voir #122 et #166 --- public/scripts/main.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'public/scripts') 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(); -- cgit v1.2.3