Closed (works as designed)
Project:
Teleport
Version:
6.x-1.0
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Jul 2008 at 18:23 UTC
Updated:
12 Oct 2008 at 22:59 UTC
Can Teleport appear at click on the reference?
Comments
Comment #1
digital_fox commentedI have inserted the link
<a href="#" onclick="javascript: Drupal.Teleport.toggle(); return false;">help button</a>. Teleport appears and there and then disappears. In what a problem?Comment #2
incidentist commentedThe problem is that the toggle() function adds a click() handler to the document that checks to see if a click is outside the Teleport dialog. If it is outside the dialog, the dialog closes. Unfortunately, if you've activated the dialog using a click, that new handler gets run after the toggle() handler. The new handler, seeing that the click was outside the teleport window, closes the window that just opened.
A workaround is to remove the new handler at the end of the onclick: