diff --git a/program/js/app.js b/program/js/app.js index 81ad61618..0c2a82b5f 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -47,7 +47,7 @@ function rcube_webmail() this.group2expand = {}; this.http_request_jobs = {}; this.menu_stack = []; - this.menu_buttons = []; + this.menu_buttons = {}; this.entity_selectors = []; this.image_style = {}; @@ -139,7 +139,7 @@ function rcube_webmail() }); if (commands.length) - this.menu_buttons.push([button, commands]); + this.menu_buttons[menu_id] = [button, commands]; this.set_menu_buttons(); };