A free, self-hostable news aggregator…
Fix print for unfolded articles (#2148)
Alexandre Alapetite5c8eb1e86498
diff --git a/p/scripts/main.js b/p/scripts/main.jsindex 3f1fdf20e..343534826 100644--- a/p/scripts/main.js+++ b/p/scripts/main.js@@ -1301,13 +1301,13 @@ function init_confirm_action() {}function init_print_action() {- $('.item.share > a[href="#"]').click(function () {+ $('.item.share > a[href="#"]').click(function (e) {var content = "<html><head><style>" +"body { font-family: Serif; text-align: justify; }" +"a { color: #000; text-decoration: none; }" +"a:after { content: ' [' attr(href) ']'}" +"</style></head><body>" +- $(".flux.current .content").html() ++ $(e.target).closest('.flux_content').find('.content').html() +"</body></html>";var tmp_window = window.open();