My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 289: Close on click in the picture
2 people starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  ----
Closed:  Aug 2009


 
Reported by alexande...@dominicus.de, Jul 22, 2009
Hi there,
i would like to close my overlay even on a click direct on the picture. Ist
this possible?

thx

Zindy
Jul 22, 2009
Project Member #1 nyro...@gmail.com
for sure it's possible.
To do so, you'll have to use a callback (probably endFillContent) to bind a function
to the click event on your image.
This function will simply call $.nyroModalRemove(); to close the modal.

An other solution (maybe a little bit easier) would be to add the class
"nyroModalClose" to the image using the same callback. With that, nyroModal will
automatically bind it as excepted.

Please let us know if you managed to do that.
Aug 3, 2009
#2 studio25...@gmail.com
i have tried to get this working, but actually i don't have any clue how to realize this.
It's an option some clients of mine are used to as they were familiar with protoype
lightbox.
Any example how to get this work?

gr
Dave
Aug 3, 2009
#3 alexande...@dominicus.de
Just search for the <img tag in the js file and add the class "nyroModalClose". Works
fine.
Aug 4, 2009
#4 studio25...@gmail.com
Thank you Alexander.
Work perfect indeed! I had read somewhere that this was possible, but i just aint got
the simple knowledge how to handle those things.
Thank you!
Aug 9, 2009
Project Member #5 nyro...@gmail.com
(No comment was entered for this change.)
Status: WontFix

Powered by Google Project Hosting