summaryrefslogtreecommitdiff
path: root/skins/default/functions.js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2010-06-08 20:50:15 +0000
committerthomascube <thomas@roundcube.net>2010-06-08 20:50:15 +0000
commite9b5a6c2d55f1fc31715ad7ff05aed631cc12699 (patch)
tree4f6651e0e935c2ca472ce1afc09e790f746bf50b /skins/default/functions.js
parent349a8e36e581694cb200e4f3097d7af8c8628662 (diff)
Unify directory/mailbox list actions
Diffstat (limited to 'skins/default/functions.js')
-rw-r--r--skins/default/functions.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/skins/default/functions.js b/skins/default/functions.js
index e1edee1e8..3a37b6d8d 100644
--- a/skins/default/functions.js
+++ b/skins/default/functions.js
@@ -131,7 +131,8 @@ function rcube_mail_ui()
messagemenu:'messagemenu',
listmenu:'listmenu',
dragmessagemenu:'dragmessagemenu',
- groupmenu:'groupoptionsmenu'
+ groupmenu:'groupoptionsmenu',
+ mailboxmenu:'mailboxoptionsmenu'
};
var obj;
@@ -173,6 +174,11 @@ show_groupmenu: function(show)
this.show_popupmenu(this.groupmenu, 'groupactionslink', show, true);
},
+show_mailboxmenu: function(show)
+{
+ this.show_popupmenu(this.mailboxmenu, 'mboxactionslink', show, true);
+},
+
show_searchmenu: function(show)
{
if (typeof show == 'undefined')
@@ -289,6 +295,8 @@ body_mouseup: function(evt, p)
this.dragmessagemenu.hide();
else if (this.groupmenu && this.groupmenu.is(':visible') && target != rcube_find_object('groupactionslink'))
this.show_groupmenu(false);
+ else if (this.mailboxmenu && this.mailboxmenu.is(':visible') && target != rcube_find_object('mboxactionslink'))
+ this.show_mailboxmenu(false);
else if (this.listmenu && this.listmenu.is(':visible') && target != rcube_find_object('listmenulink')) {
var menu = rcube_find_object('listmenu');
while (target.parentNode) {