From 64e3e80743415e5fb121eb5c66416593c38ef288 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Tue, 08 Jun 2010 08:46:05 -0400 Subject: [PATCH] - Fix some IMAP errors handling when opening the message (#1485443) --- 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 370bdd4..df512d0 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -203,7 +203,7 @@ 'open', 'mark', 'edit', 'viewsource', 'download', 'print', 'load-attachment', 'load-headers']; if (this.env.action=='show' || this.env.action=='preview') { - this.enable_command(this.env.message_commands, true); + this.enable_command(this.env.message_commands, this.env.uid); if (this.env.next_uid) { this.enable_command('nextmessage', 'lastmessage', true); @@ -243,7 +243,7 @@ this.init_messageform(); } // show printing dialog - else if (this.env.action == 'print') + else if (this.env.action == 'print' && this.env.uid) window.print(); // get unread count for each mailbox -- Gitblit v1.9.1