diff options
author | alecpl <alec@alec.pl> | 2010-06-08 12:46:05 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-06-08 12:46:05 +0000 |
commit | 64e3e80743415e5fb121eb5c66416593c38ef288 (patch) | |
tree | fdf160e8eb9580deab6c4fc2cbdb3ceb63d3c76f /program/js/app.js | |
parent | b93d00026aefbdccfabd6253f9cb184956617084 (diff) |
- Fix some IMAP errors handling when opening the message (#1485443)
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | 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 370bdd4c3..df512d06d 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -203,7 +203,7 @@ function rcube_webmail() '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 @@ function rcube_webmail() 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 |