I am having some problems with the sortable plugin, most annoyingly in
firefox instead of drag and drop functionality it seems to be click
once then click again to drop.. but it doesn't seem to work at
consistently, this problem isn't apparent in other demo's I have tried
to I am assuming it is a problem on my end, also I can't get scrolling
while dragging to work on any browser that I have tried. Any help
would be great!

JQuery code as follows;

        $(document).ready(function() {
                $("#library-table").sortable({
                        items  : '.library-item',
                        cursor : 'move',
                        handle : '.handle',
                        scroll : true,
                        update : function () {
                        $.post('/libraries/sort',
'_method=put&authenticity_token='+AUTH_TOKEN+'&'+$(this).sortable
('serialize'));
                        }
                });
        });

an HTML Example;

<div id="library-table" class="ui-sortable">
                <div class="library-item" id="listItem-1">
                        <%= image_tag '/images/pdf.png', :height => '40px', 
:class
=> :handle%>
                        <h3><%= library.title %></h3>
                        <p><%= library.desc %></p>
                        <ul>
                                <li><%= link_to "Download", library.doc.url(), 
:target => :blank
%></li>
                                <li><%= link_to 'Delete', library, :confirm => 
'Are you
sure?', :method => :delete %> | </li>
                                <li><%= link_to "Edit", 
edit_library_path(library.permalink), :rel
=> 'facebox' %> | </li>
                        </ul>
                </div>2
                <div class="library-item" id="listItem-2">
                        <%= image_tag '/images/pdf.png', :height => '40px', 
:class
=> :handle%>
                        <h3><%= library.title %></h3>
                        <p><%= library.desc %></p>
                        <ul>
                                <li><%= link_to "Download", library.doc.url(), 
:target => :blank
%></li>
                                <li><%= link_to 'Delete', library, :confirm => 
'Are you
sure?', :method => :delete %> | </li>
                                <li><%= link_to "Edit", 
edit_library_path(library.permalink), :rel
=> 'facebox' %> | </li>
                        </ul>
                </div>
        </div>

I do not get any errors in firebug, I am quite stumped. Any help would
be much appreciated!

Jack

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery (English)" group.
To post to this group, send email to jquery-en@googlegroups.com
To unsubscribe from this group, send email to 
jquery-en+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to