From 5c8eb1e86498af03c73a0320bd3213c509e1c743 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 26 Nov 2018 08:32:04 +0100 Subject: Fix print for unfolded articles (#2148) Fix https://github.com/FreshRSS/FreshRSS/issues/2130 `.current` might not exist in views for which all articles are already expanded --- p/scripts/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'p/scripts/main.js') diff --git a/p/scripts/main.js b/p/scripts/main.js index 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 = "" + - $(".flux.current .content").html() + + $(e.target).closest('.flux_content').find('.content').html() + ""; var tmp_window = window.open(); -- cgit v1.2.3