When a window is closed. All html elements of the window is removed from the DOM, except the popup windows created by richselect & combo components. As a result, creating/closing windows will leave unused html in the DOM.
One possibility to correct this issue is to create a ‘onClose’ event on the window. Then in the richselect routine attach an ‘onClose’ event that will close the popup window that was created by it.
The code changes are:
To “Window” component, in the close function, call the ‘onClose’ event. The code starting at line: 9084 would look like this:
close:function(){
this.define(“modal”, false);
//temp
this.callEvent(“onClose”,[]);
dhx.html.remove(this._viewobj);
this.destructor();
},
To the ‘richselect’ component, in the _create_popup function, starting at line: 6452
this._set_on_popup_click();
var close = this; // find parent
while(close.getParent()) { close = close.getParent(); }
close.attachEvent("onClose", function(){ $$(id).close(); });
Thanks,
Kris