From 8dc9e36d5377c8d62959b89e2ef6d906d96fc9b9 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Fri, 30 May 2014 03:29:39 -0400 Subject: [PATCH] Small code improvement --- program/js/app.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index fe5815b..914bb02 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1134,8 +1134,8 @@ this.gui_objects.messagepartframe.contentWindow.print(); } else if (uid = this.get_single_uid()) { - this.printwin = this.open_window(this.env.comm_path+'&_action=print&_uid='+uid+'&_mbox='+urlencode(this.get_message_mailbox(uid))+(this.env.safemode ? '&_safe=1' : ''), true, true); - if (this.printwin) { + url = '&_action=print&_uid='+uid+'&_mbox='+urlencode(this.get_message_mailbox(uid))+(this.env.safemode ? '&_safe=1' : ''); + if (this.open_window(this.env.comm_path + url, true, true)) { if (this.env.action != 'show') this.mark_message('read', uid); } -- Gitblit v1.9.1