I made a fix for myself, I changed the following to the modal.js:
I made a global variable:
Code:
var onMouseMoveEvent
I stored the onmousemove event in this variabale in the open function
Code:
open:function(t, contenttype, contentsource, title, attr, recalonload){
onMouseMoveEvent = document.onmousemove // store previous onmousemove event
var d=dhtmlwindow //reference dhtmlwindow object
... rest if the function code
And I restore the onmousemove event at the close and forceclose functions
Code:
close:function(t){ //user initiated function used to close modal window
t.contentDoc=(t.contentarea.datatype=="iframe")? window.frames["_iframe-"+t.id].document : t.contentarea //return reference to modal window DIV (or document object in the case of iframe
var closewinbol=dhtmlwindow.close(t)
if (closewinbol){ //if var returns true
this.veilstack--
if (this.veilstack==0) //if this is the only modal window visible on the screen, and being closed
this.interVeil.style.display="none"
document.onmousemove=onMouseMoveEvent // restore previous onmousemove event
}
},
forceclose:function(t){ //function attached to default "close" icon of window to bypass "onclose" event, and just close window
dhtmlwindow.rememberattrs(t) //remember window's dimensions/position on the page before closing
t.style.display="none"
this.veilstack--
if (this.veilstack==0) //if this is the only modal window visible on the screen, and being closed
this.interVeil.style.display="none"
document.onmousemove=onMouseMoveEvent // restore previous onmousemove event
},
This works fine and solves all my problems.
(cleared all my typos *sighs*)
Bookmarks