Closed (fixed)
Project:
Lightbox2
Version:
5.x-2.8
Component:
User interface
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
21 Jul 2008 at 21:49 UTC
Updated:
8 Jan 2009 at 13:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
Eiersneijer commented<a href="link to video" rel="lightvideo[width:550px; height:412px;][<strong>Embed this video: </strong><input type='text' value='code to embed the video'>]" title="a title">a link</a>sorry, this is the example.
Comment #2
stella commentedPlease try the attached patch, or the latest dev release (available later today).
Cheers,
Stella
Comment #3
Eiersneijer commentedThis solves the problem when you click on it. However, to copy, using ctrl+c, it closes the lightbox ('cause C is a hotkey).
Comment #4
stella commentedOk, in the latest dev release I've made the keyboard shortcuts configurable under the Advanced Settings collapsed fieldset on admin/settings/lightbox2. So you can remove "c" from the list of "closing" shortcuts.
However, I've had to roll back the previous patch for the clicking issue in the input box. It was stopping all links from working, as raised in #290933: 'View image details' link is not working. I can't make both work so I've opted to allow links to work as more people will require that than input boxes. If you want to you can add the one line supplied in the previous patch to lightbox.js and just keep adding it back in each time you upgrade. It will allow you to click in the input box but links will not work. I haven't found an alternative solution, sorry.
Cheers,
Stella
Comment #5
Eiersneijer commentedStupid question, no doubt; but what line should be placed back? I've walked through both lightbox.js (old and new) but don't seem to find the line. I'm not much of a codewiz.
Comment #6
stella commentedIn the patch above, there's a line beginning with a + sign. This is the line you need to add in (omitting the + sign). The other lines in the patch are just to show you where it's meant to go.
Cheers,
Stella
Comment #7
Eiersneijer commentedThank you.
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #9
stella commentedReleased in Lightbox2 6.x-1.9 and 5.x-2.9.
Cheers,
Stella