I think selection is a lot more complicated that your one liner that
never deselects anything.

I found a way to make dblclick work by changing the ui.mouse code

                // preventDefault() is used to prevent the selection of text 
here -
                // however, in Safari, this causes select boxes not to be 
selectable
                // anymore, so this fix is needed
                ($.browser.safari || event.preventDefault());
This line of code can be commented out and dblclick will work on FF. I
think that also indicates that preventDefault doesn't work on IE7
since dblclick works and any text you double click on gets selected.
It does seem to work correctly on FF but that means you can't use
dblclick on selectable items.


On Mar 17, 5:42 am, "Richard D. Worth" <[email protected]> wrote:
> I think you may have to add the delay and handle the single click selection
> yourself (which is as simple as):
>
> $("#selectable > *").click(function() {
>   $(this).addClass("ui-selected");
>
> });
>
> - Richard
>
> On Thu, Mar 12, 2009 at 4:27 PM, Nibe <[email protected]> wrote:
>
> > I can't get dblclick to fire on selectable items in FF 3 with ui 1.7.
> > It works in IE 7. I tried adding a short delay but that broke single
> > click selection. Anybody have any ideas on how to get dblclick events
> > to fire?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to