this._setQsearchText(true);
/* Add popdown menus. Check for disabled compose at the same time. */
- DimpCore.addPopdown('button_other', 'otheractions');
- DimpCore.addPopdown('folderopts_link', 'folderopts');
+ DimpCore.addPopdown('button_other', 'otheractions', true);
+ DimpCore.addPopdown('folderopts_link', 'folderopts', true);
DM.addSubMenu('ctx_message_reply', 'ctx_reply');
DM.addSubMenu('ctx_message_forward', 'ctx_forward');
if (DIMP.conf.disable_compose) {
$('button_reply', 'button_forward').compact().invoke('up', 'SPAN').concat($('button_compose', 'composelink', 'ctx_contacts_new')).compact().invoke('remove');
} else {
- DimpCore.addPopdown('button_reply', 'reply', true);
- DimpCore.addPopdown('button_forward', 'forward', true);
+ DimpCore.addPopdown('button_reply', 'reply', false, true);
+ DimpCore.addPopdown('button_forward', 'forward', false, true);
}
DimpCore.addContextMenu({
// p = (Element) Parent element
// t = (string) Context menu type
+ // trigger = (boolean) Trigger popdown on button click?
// d = (boolean) Disabled?
- addPopdown: function(p, t, d)
+ addPopdown: function(p, t, trigger, d)
{
var elt = new Element('SPAN', { className: 'iconImg popdownImg popdown' });
p = $(p);
p.insert({ after: elt });
- this.addContextMenu({
- disable: d,
- id: p.identify(),
- left: true,
- offset: p.up(),
- type: t
- });
+ if (trigger) {
+ this.addContextMenu({
+ disable: d,
+ id: p.identify(),
+ left: true,
+ offset: p.up(),
+ type: t
+ });
+ }
this.addContextMenu({
disable: d,