mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-30 03:43:40 +01:00
Only loop through existing widgets, not the whole list
This commit is contained in:
parent
19264649a6
commit
fb3672f950
@ -315,7 +315,7 @@ var et2_customfields_list = et2_valueWidget.extend([et2_IDetachedDOM, et2_IInput
|
||||
return null;
|
||||
}
|
||||
var value = {};
|
||||
for(var field_name in this.options.customfields)
|
||||
for(var field_name in this.widgets)
|
||||
{
|
||||
if(this.widgets[field_name].getValue)
|
||||
{
|
||||
@ -327,7 +327,7 @@ var et2_customfields_list = et2_valueWidget.extend([et2_IDetachedDOM, et2_IInput
|
||||
|
||||
isDirty: function() {
|
||||
var dirty = true;
|
||||
for(var field_name in this.options.customfields)
|
||||
for(var field_name in this.widgets)
|
||||
{
|
||||
if(this.widgets[field_name].isDirty)
|
||||
{
|
||||
@ -338,7 +338,7 @@ var et2_customfields_list = et2_valueWidget.extend([et2_IDetachedDOM, et2_IInput
|
||||
},
|
||||
|
||||
resetDirty: function() {
|
||||
for(var field_name in this.options.customfields)
|
||||
for(var field_name in this.widgets)
|
||||
{
|
||||
if(this.widgets[field_name].resetDirty)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user