Well yes it appears you've updated the dhtmlwindow script to one that allows once per session. However, it's clear that the modal.js script isn't passing your parameter about the session on to the updated dhtmlwindow script. Now there could be other problems, but this is the first thing I would try - In modal.js find the open function as shown below and add the highlighted:
Code:
open:function(t, contenttype, contentsource, title, attr, recalonload, session){
var d=dhtmlwindow //reference dhtmlwindow object
this.interVeil=document.getElementById("interVeil") //Reference "veil" div
this.veilstack++ //var to keep track of how many modal windows are open right now
this.loadveil()
if (recalonload=="recal" && d.scroll_top==0)
d.addEvent(window, function(){dhtmlmodal.adjustveil()}, "load")
var t=d.open(t, contenttype, contentsource, title, attr, recalonload, session)
t.controls.firstChild.style.display="none" //Disable "minimize" button
t.controls.onclick=function(){dhtmlmodal.close(this._parent, true)} //OVERWRITE default control action with new one
t.show=function(){dhtmlmodal.show(this)} //OVERWRITE default t.show() method with new one
t.hide=function(){dhtmlmodal.close(this)} //OVERWRITE default t.hide() method with new one
return t
},
Bookmarks