forked from extern/egroupware
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
aa77cf561b
commit
615fdd56c5
@ -4313,7 +4313,8 @@ app.classes.mail = AppJS.extend(
|
||||
widget:{},
|
||||
jQClass: '.mailComposeJQueryReplyto'
|
||||
}};
|
||||
|
||||
var actions = egw.preference('toggledOnActions', 'mail');
|
||||
actions = actions ? actions.split(',') : [];
|
||||
for(var widget in widgets)
|
||||
{
|
||||
var expanderBtn = widget + '_expander';
|
||||
@ -4323,7 +4324,8 @@ app.classes.mail = AppJS.extend(
|
||||
|
||||
if (typeof widgets[widget].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);
|
||||
jQuery(widgets[widget].jQClass).hide();
|
||||
|
Loading…
Reference in New Issue
Block a user