diff options
author | Aleksander Machniak <alec@alec.pl> | 2019-11-15 12:01:41 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2019-11-15 12:06:25 +0300 |
commit | ebfd0f53bfdc9ac5efc37dc974a7dcb42f53c100 (patch) | |
tree | 0ba1f35b71c6b3791203864e148738ca661c7a1e /skins | |
parent | 594a12b61e93f29c684e93e45edd270d264210fa (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.js | 2 |
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)); |