From 763aec14102720746c2ba9a8d5ca66d6952da1c5 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 18 Dec 2009 16:12:46 -0700 Subject: [PATCH] Add message source entry to contextmenu if preview is closed --- imp/js/DimpBase.js | 10 ++++++++++ imp/templates/index/index-dimp.inc | 4 ++++ imp/themes/screen-dimp.css | 6 +++--- imp/themes/silver/screen-dimp.css | 6 +++--- 4 files changed, 20 insertions(+), 6 deletions(-) diff --git a/imp/js/DimpBase.js b/imp/js/DimpBase.js index 5c50266c2..5b3da7b45 100644 --- a/imp/js/DimpBase.js +++ b/imp/js/DimpBase.js @@ -774,6 +774,12 @@ var DimpBase = { this.composeMailbox('forward'); break; + case 'ctx_message_source': + this.viewport.getSelected().get('dataob').each(function(v) { + DimpCore.popupWindow(DimpCore.addURLParam(DIMP.conf.URI_VIEW, { uid: v.imapuid, mailbox: v.view, actionID: 'view_source', id: 0 }, true), v.imapuid + '|' + v.view); + }, this); + break; + case 'ctx_draft_resume': this.composeMailbox('resume'); break; @@ -941,6 +947,10 @@ var DimpBase = { $(ctx_id + '_' + DIMP.conf.qsearchfield).addClassName('contextSelected'); break; + case 'ctx_message': + [ $('ctx_message_source').up() ].invoke(DIMP.conf.preview_pref ? 'hide' : 'show'); + break; + default: parentfunc(e); break; diff --git a/imp/templates/index/index-dimp.inc b/imp/templates/index/index-dimp.inc index 4e6db8146..ecacc71ab 100644 --- a/imp/templates/index/index-dimp.inc +++ b/imp/templates/index/index-dimp.inc @@ -389,6 +389,10 @@ function _simpleButton($id, $text, $image) +
+
+ +