mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01:00
fixed javascript error when setting a validation error on a widget not on a tab
This commit is contained in:
parent
6c1ac892fb
commit
6ee8b47d7a
@ -246,13 +246,11 @@ var et2_inputWidget = et2_valueWidget.extend([et2_IInput,et2_ISubmitListener],
|
||||
|
||||
// If on a tab, switch to that tab so user can see it
|
||||
var widget = this;
|
||||
var tab = this;
|
||||
while(widget._parent && widget._type !='tabbox')
|
||||
while(widget._parent && widget._type != 'tabbox')
|
||||
{
|
||||
tab = widget;
|
||||
widget = widget._parent;
|
||||
}
|
||||
widget.activateTab(this);
|
||||
if (widget._type == 'tabbox') widget.activateTab(this);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user