Is there a way to either :
  - limit the active/triggering "area" to a part of the <li> element
(like a luggage handle)
or
  - prevent a part of the <li> element from triggering the sort mode
?

 There's a great example of how this is done at the wiki:
http://wiki.script.aculo.us/scriptaculous/show/SortableListsDemo

One of the options you can pass to the Sortable is what classnames to recognize as a handle.  If a tag with the classname specified appears within the Sortable object, that class' contents will be used as a handle.  So, for your project:

<ul class="sort" id="list">

   <li id="1">
     <span class="handle">grab</span>
     <span class="edit">edit link</span>
    text
   </li>

   <li id="2">
     <span class="handle">grab</span>
     <span class="edit">edit link</span>
    text
   </li>

</ul>

and then:
Sortable.create("list", {handle:'handle'});

    - Danger

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to