summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-05-30 09:29:39 +0200
committerAleksander Machniak <alec@alec.pl>2014-05-30 09:29:39 +0200
commit8dc9e36d5377c8d62959b89e2ef6d906d96fc9b9 (patch)
tree93c7ac8bb02977ef62ce5c7aa7067b9f42287da0 /program
parent646b64107a578d228a23d5b82923fb794fdb9c55 (diff)
Small code improvement
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js
index fe5815b3b..914bb0278 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1134,8 +1134,8 @@ function rcube_webmail()
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);
}