mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-21 10:27:52 +02: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
|
// If on a tab, switch to that tab so user can see it
|
||||||
var widget = this;
|
var widget = this;
|
||||||
var tab = this;
|
|
||||||
while(widget._parent && widget._type != 'tabbox')
|
while(widget._parent && widget._type != 'tabbox')
|
||||||
{
|
{
|
||||||
tab = widget;
|
|
||||||
widget = widget._parent;
|
widget = widget._parent;
|
||||||
}
|
}
|
||||||
widget.activateTab(this);
|
if (widget._type == 'tabbox') widget.activateTab(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user