mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-26 15:11:45 +01:00
Check / load common custom field settings globally, at top level.
This commit is contained in:
parent
3260c1cc81
commit
824b57cfa2
@ -144,7 +144,11 @@ var et2_customfields_list = et2_DOMWidget.extend([et2_IDetachedDOM], {
|
|||||||
// Add in settings that are objects
|
// Add in settings that are objects
|
||||||
if(!_attrs.customfields)
|
if(!_attrs.customfields)
|
||||||
{
|
{
|
||||||
|
// Customized settings for this widget (unlikely)
|
||||||
var data = this.getArrayMgr("modifications").getEntry(this.id);
|
var data = this.getArrayMgr("modifications").getEntry(this.id);
|
||||||
|
// Check for global settings
|
||||||
|
var global_data = this.getArrayMgr("modifications").getEntry('~custom_fields~');
|
||||||
|
if(global_data) data = jQuery.extend({}, data, global_data);
|
||||||
for(var key in data)
|
for(var key in data)
|
||||||
{
|
{
|
||||||
if(data[key] instanceof Object && ! _attrs[key]) _attrs[key] = data[key];
|
if(data[key] instanceof Object && ! _attrs[key]) _attrs[key] = data[key];
|
||||||
|
Loading…
Reference in New Issue
Block a user