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
path: root/skins
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2019-11-15 12:01:41 +0300
committerAleksander Machniak <alec@alec.pl>2019-11-15 12:06:25 +0300
commitebfd0f53bfdc9ac5efc37dc974a7dcb42f53c100 (patch)
tree0ba1f35b71c6b3791203864e148738ca661c7a1e /skins
parent594a12b61e93f29c684e93e45edd270d264210fa (diff)
Elastic: Fix data-fab-task handling (#7038)
Since the code is executed before rcmail init event, we have to use rcmail.env.task instead of rcmail.task.
Diffstat (limited to 'skins')
-rw-r--r--skins/elastic/ui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js
index de50b3c99..aeeae5d4c 100644
--- a/skins/elastic/ui.js
+++ b/skins/elastic/ui.js
@@ -501,7 +501,7 @@ function rcube_elastic_ui()
task = button.data('fab-task') || '*',
action = button.data('fab-action') || '*';
- if ((task == '*' || task == rcmail.task)
+ if ((task == '*' || task == rcmail.env.task)
&& (action == '*' || action == rcmail.env.action || (action == 'none' && !rcmail.env.action))
) {
fabuttons.push(create_cloned_button(button, false, false, true));