We just updated our project with the latest release and now tool buttons that need to open a dialog fail in the _addWindowToDocument function (on line 6 of the following fragment)
| _addWindowToDocument:function(){ | |
| var _ac=document.getElementById(this._formID); | |
| if(!_ac){ | |
| _ac=document.forms[0]; | |
| } | |
| _ac.insertBefore(this._popupElement,theForm.firstChild); | |
| } |
...am I missing something? It would be ideal if this global var wasn't expected to always be defined. What would you recommend for a "fix"?
I can throw in some temp code so "theForm" is always defined for us, but that just feels wrong :)