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:
Nathan Gray
2015-04-20 22:54:58 +00:00
parent 25a9811121
commit a627dea3d6
2 changed files with 13 additions and 12 deletions

View File

@ -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);
}
});