diff options
author | Aleksander Machniak <alec@alec.pl> | 2020-01-18 12:17:15 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2020-01-18 12:26:49 +0300 |
commit | 62ed219821b013b8b27166ec8f25497ee25a8a50 (patch) | |
tree | 8bb0acab8aa6515adb88dc000fc3c3e73a2d76ad /skins/elastic | |
parent | f0dc915fd871a819bf09d1d677c65722233a4101 (diff) |
Elastic: Fix disappearing sidebar in mail compose after clicking Mail button
Elastic: Fix incorrect aria-disabled attribute on Mail taskmenu button in mail compose
Diffstat (limited to 'skins/elastic')
-rw-r--r-- | skins/elastic/ui.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index 997a2af88..13f205025 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -707,7 +707,10 @@ function rcube_elastic_ui() // In compose/preview window we do not provide "Back" button, instead // we modify the "Mail" button in the task menu to act like it (i.e. calls 'list' command) if (!rcmail.env.extwin && (rcmail.env.action == 'compose' || rcmail.env.action == 'show')) { - $('a.mail', layout.menu).attr('onclick', "return rcmail.command('list','',this,event)"); + $('a.mail', layout.menu).attr({ + 'aria-disabled': false, + onclick: "return rcmail.command('list','',this,event);" + }); } // Append contact menu to all mailto: links @@ -1176,6 +1179,10 @@ function rcube_elastic_ui() */ function content_frame_init() { + if (!layout.list.length) { + return; + } + var last_selected = env.last_selected, title_reset = function(title) { if (typeof title !== 'string' || !title.length) { |