From: Michael M Slusarz Date: Fri, 18 Dec 2009 23:12:46 +0000 (-0700) Subject: Add message source entry to contextmenu if preview is closed X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=763aec14102720746c2ba9a8d5ca66d6952da1c5;p=horde.git Add message source entry to contextmenu if preview is closed --- 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) +
+
+ +