Normally with popup images like that, you either click on the X to get rid of it or outside the image, which is what happens now. Personally, I'd leave it like that.

However, if you want to change the functionality, I've moved this to the JS forum, where hopefully someone who's good at JS (like @Pullo) will help you out.

Stomme_poes
—
2013-09-27T10:40:44Z —
#5

Right now the site gives nothing to work with. Or at least in Opera, I get a modal dialog saying "site coming soon" and no way to interact with anything.

Normally to have stuff remove on click, find the function normally used by the "Close" x button, but hang it on the image itself, or the whole modal dialog body (but then there should be nothing else clickable in that dialog).

seotoka
—
2013-09-27T10:59:22Z —
#6

hey, could you check the website again. it should be up so you can see. could you advice more exactly where do edit this to make it work?

Pullo
—
2013-09-27T11:06:22Z —
#7

Nope, still seeing exactly what Poes describes.

Pullo
—
2013-09-27T11:11:41Z —
#8

Or do you want to know how to be able to close the "maintenance" modal dialogue?

seotoka
—
2013-09-27T11:19:53Z —
#9

nope. should be up now, had the maintenance plugin active. now its off

Stomme_poes
—
2013-09-27T11:30:34Z —
#10

I saw maint again but I think I have browser cache... lemme clear

ok this is what the Lightbox guy does

he made a Lightbox object and made some custom prototype funcs to it. One of them is called end().

I suppose you could add lb-image to that list, or replace lb-close with lb-image, assuming you will also remove the X button, but then I'd test it well. One problem with this though is that images aren't natively focusable, so keyboard would not be able to close if you remove the X, so I'd keep it in:

I tried to stick to the image because i wouldn't want any (other) possible buttons inside losing their own clicks (I fight this a lot in Javascript where someone wants clicking on the document should close something but all other click listeners within document still work... managing bubbling/propagation and stuff by hand stinks).

Though it occurred to me that maybe the click listener wasn't on the image if the image is newly added each time. Then I guess you'd use something like $(document).on('click', 'list, of, elements, including, img', func() {blahblah;});