mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-14 10:28:31 +02:00
Customfields:
- fix options/attributes not saved under some cirumstances - fix subsequent changes not saved if you click Apply the first time
This commit is contained in:
@ -798,8 +798,8 @@ app.classes.admin = AppJS.extend(
|
||||
var root = widget.getRoot();
|
||||
var attributes = widget.getArrayMgr('content').getEntry('attributes['+widget.getValue()+']')||{};
|
||||
root.getWidgetById('cf_values').set_statustext(widget.egw().lang(widget.getArrayMgr('content').getEntry('options['+widget.getValue()+']')||''));
|
||||
root.getWidgetById('cf_len').set_disabled(!attributes.cf_len);
|
||||
root.getWidgetById('cf_rows').set_disabled(!attributes.cf_rows);
|
||||
root.getWidgetById('cf_values').set_disabled(!attributes.cf_values);
|
||||
jQuery(root.getWidgetById('cf_len').getDOMNode()).toggle(attributes.cf_len && true);
|
||||
jQuery(root.getWidgetById('cf_rows').getDOMNode()).toggle(attributes.cf_rows && true);
|
||||
jQuery(root.getWidgetById('cf_values').getParentDOMNode()).toggle(attributes.cf_values && true);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user