overlayCloseOnClick
Are you guys using the latest version? I can't duplicate the bug... BTW, there is now an RSS changelog for each project.
Posted April 14th, 2007 at 4:38pm by ryan
i just try with the version 1.2.8
but it seems to be the same ... :(
Posted April 16th, 2007 at 1:25am by Nico
here s my code
is there any mistake ??? i dont know
$$('a.modal').each(function(link) { new Control.Modal(link, { beforeLoad: function() { Control.Modal.open(" Chargement... Veuillez patienter...", { overlayCloseOnClick: false, containerClassName: 'load', overlayClassName: 'load' }); } }); });any idea ?
Posted April 16th, 2007 at 2:56am by Nico
when i turn the overlayCloseOnClick to false
into the js source it works , it disable all onClick event
but for my app i d like to disable only the second Modal ( which one with the picture ...)
how Can i do that ????
Posted April 16th, 2007 at 3:59am by Nico
I found it
it s not a very nice way to proceed but it works !!!
here s my script
$$('a.modal').each(function(link) { new Control.Modal(link, { overlayCloseOnClick:false, beforeOpen: function() { Control.Modal.open(" Chargement... Veuillez patienter...", { overlayCloseOnClick: false }); }, onLoad: function() { Control.Modal.open(link,{overlayCloseOnClick: true}); } }); });on the loading the click on the overlay is disabled
and after the displaying of the page the overlayCloseOnClick is enabled
Posted April 16th, 2007 at 9:18am by Nico
I'm having a little trouble with the related imageCloseOnClick. I set it to true in the constructor and then in the content have an image with id of modal_image (as the source for c_m seems to indicate is appropriate), but clicking the image has no effect:
Calling code:
Event.observe(window,'load',function(){ $('popup-instructions').observe('click', function(){ m = new Control.Modal(false, { imageCloseOnClick: true, contents: function() { new Ajax.Request('popup-instructions.htm', { onComplete: function(request) { this.update(request.responseText); }.bind(this) }); return 'loading'; } }); m.open(); }); });#modal_container { width:660px; }
Bill
Posted April 17th, 2007 at 1:28pm by BillSaysThis
Just wanted to let you know that I haven't had time to examine what the problems are but this is on my radar. Thanks for posting detailed code.
Posted April 17th, 2007 at 2:36pm by ryan
Hi all,
The overlayCloseOnClick parameter doesn't seems to work for me, when giving it the false value, there is no change, it still closes on overlay clicking. Any idea ?
Here is my Control.Modal construction code :
Event.observe(window,'load',function(){ new Control.Modal($('lien_inscription'),{ overlayCloseOnClick: false, containerClassName: 'interne', overlayClassName: 'interne' }); });
Thanks.
Posted April 13th, 2007 at 2:30am by meyogi84