Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2020-01-18 12:17:15 +0300
committerAleksander Machniak <alec@alec.pl>2020-01-18 12:26:49 +0300
commit62ed219821b013b8b27166ec8f25497ee25a8a50 (patch)
tree8bb0acab8aa6515adb88dc000fc3c3e73a2d76ad /skins/elastic
parentf0dc915fd871a819bf09d1d677c65722233a4101 (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.js9
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) {