From d125f864ea31cf0b6ecce462f711467fc6441747 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Fri, 25 Mar 2016 08:41:11 -0400 Subject: [PATCH] Message/rfc822 previewer compatibility with Enigma --- 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 00028f7..75560e7 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -341,7 +341,7 @@ } else if (this.env.action == 'get') { this.enable_command('download', 'print', true); - if (this.env.mimetype == 'message/rfc822') { + if (this.env.is_message) { this.enable_command('reply', 'reply-all', 'forward', 'forward-inline', 'forward-attachment', true); if (this.env.list_post) this.enable_command('reply-list', true); @@ -1217,7 +1217,7 @@ this.open_window(this.env.comm_path + url, true, true); } } - else if (this.env.action == 'get' && this.env.mimetype != 'message/rfc822') { + else if (this.env.action == 'get' && !this.env.is_message) { this.gui_objects.messagepartframe.contentWindow.print(); } else if (uid = this.get_single_uid()) { -- Gitblit v1.9.1