forked from extern/egroupware
Fix predefined compose's toolbar actions no longer getting set
This commit is contained in:
parent
89636b0ede
commit
1b4052a40f
@ -6158,12 +6158,11 @@ app.classes.mail = AppJS.extend(
|
|||||||
{
|
{
|
||||||
if (toolbar && toolbar.options.actions[actions[i]])
|
if (toolbar && toolbar.options.actions[actions[i]])
|
||||||
{
|
{
|
||||||
var $d = jQuery('#composeToolbar-'+actions[i]);
|
let d = document.getElementById('mail-compose_composeToolbar-'+actions[i]);
|
||||||
if ($d.length > 0
|
if (d && toolbar._actionManager.getActionById(actions[i]).checkbox
|
||||||
&& toolbar._actionManager.getActionById(actions[i]).checkbox
|
|
||||||
&& !toolbar._actionManager.getActionById(actions[i]).checked)
|
&& !toolbar._actionManager.getActionById(actions[i]).checked)
|
||||||
{
|
{
|
||||||
$d.trigger('click');
|
d.click();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user