aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--p/scripts/main.js4
1 files changed, 2 insertions, 2 deletions
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 = "<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();