Check out this page and view the demo. You'll notice that when you click on the mask, the pop-up disappears. How can I make it so that clicking event is optional and set to true
by default like in this code;
TINY.box.show({url:'advanced.html',width:300,height:150,
maskclick:false})
Here's the section of JavaScript code that needs editing:
TINY={};
TINY.box=function(){
var j,m,b,g,v,p=0;
return{
show:function(o){
v={opacity:70,close:1,animate:1,fixed:1,mask:1,maskid:'',boxid:'',topsplit:2,url:0,post:0,height:0,width:0,html:0,iframe:0};
for(s in o){v[s]=o[s]}
if(!p){
j=document.createElement('div'); j.className='tbox';
p=document.createElement('div'); p.className='tinner';
b=document.createElement('div'); b.className='tcontent';
m=document.createElement('div'); m.className='tmask';
g=document.createElement('div'); g.className='tclose'; g.v=0;
document.body.appendChild(m); document.body.appendChild(j); j.appendChild(p); p.appendChild(b);
m.onclick=g.onclick=TINY.box.hide; window.onresize=TINY.box.resize
}else{
j.style.display='none'; clearTimeout(p.ah); if(g.v){p.removeChild(g); g.v=0}
}
p.id=v.boxid; m.id=v.maskid; j.style.position=v.fixed?'fixed':'absolute';
if(v.html&&!v.animate){
p.style.backgroundImage='none'; b.innerHTML=v.html; b.style.display='';
p.style.width=v.width?v.width+'px':'auto'; p.style.height=v.height?v.height+'px':'auto'
}else{
b.style.display='none';
if(!v.animate&&v.width&&v.height){
p.style.width=v.width+'px'; p.style.height=v.height+'px'
}else{
p.style.width=p.style.height='100px'
}
}
if(v.mask){this.mask(); this.alpha(m,1,v.opacity)}else{this.alpha(j,1,100)}
if(v.autohide){p.ah=setTimeout(TINY.box.hide,1000*v.autohide)}else{document.onkeyup=TINY.box.esc}
},
fill:function(c,u,k,a,w,h)...