mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Keep toggled on fields open when they're explicitly have been set in preferences to be on all the time
This commit is contained in:
parent
132b0fca1c
commit
5a7b1aabec
@ -4332,7 +4332,8 @@ app.classes.mail = AppJS.extend(
|
|||||||
widget:{},
|
widget:{},
|
||||||
jQClass: '.mailComposeJQueryReplyto'
|
jQClass: '.mailComposeJQueryReplyto'
|
||||||
}};
|
}};
|
||||||
|
var actions = egw.preference('toggledOnActions', 'mail');
|
||||||
|
actions = actions ? actions.split(',') : [];
|
||||||
for(var widget in widgets)
|
for(var widget in widgets)
|
||||||
{
|
{
|
||||||
var expanderBtn = widget + '_expander';
|
var expanderBtn = widget + '_expander';
|
||||||
@ -4342,7 +4343,8 @@ app.classes.mail = AppJS.extend(
|
|||||||
|
|
||||||
if (typeof widgets[widget].widget != 'undefined'
|
if (typeof widgets[widget].widget != 'undefined'
|
||||||
&& typeof widgets[expanderBtn].widget != 'undefined'
|
&& typeof widgets[expanderBtn].widget != 'undefined'
|
||||||
&& widgets[widget].widget.get_value().length == 0)
|
&& widgets[widget].widget.get_value().length == 0
|
||||||
|
&& actions.indexOf(expanderBtn)<0)
|
||||||
{
|
{
|
||||||
widgets[expanderBtn].widget.set_disabled(false);
|
widgets[expanderBtn].widget.set_disabled(false);
|
||||||
jQuery(widgets[widget].jQClass).hide();
|
jQuery(widgets[widget].jQClass).hide();
|
||||||
|
Loading…
Reference in New Issue
Block a user