fixed javascript error when setting a validation error on a widget not on a tab

This commit is contained in:
Ralf Becker 2014-05-21 09:07:14 +00:00
parent 6c1ac892fb
commit 6ee8b47d7a

View File

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