diff --git a/etemplate/js/et2_core_inputWidget.js b/etemplate/js/et2_core_inputWidget.js index 78ff62c874..6eeaa7e320 100644 --- a/etemplate/js/et2_core_inputWidget.js +++ b/etemplate/js/et2_core_inputWidget.js @@ -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); } } },