PDA

View Full Version : Close panel on doubleclick



Dig4Fire
14 Sep 2010, 12:22 AM
How to close a panel on doubleclick?

evant
14 Sep 2010, 12:41 AM
panel.el.on('dblclick', panel.destroy, panel);

Dig4Fire
14 Sep 2010, 12:54 AM
Thank you

Dig4Fire
14 Sep 2010, 9:44 AM
The dblclick-event works only in browser, not on my smartphone.

daveamos
14 Sep 2010, 1:49 PM
That works great for me, but it doesn't destroy the "darkness" that appears behind the popup when it opens. I have to click one more time to remove that as well. Is there a way both can disappear at the same time?