Displaying 7 results from an estimated 7 matches for "sortable_list".
2006 Nov 04
1
Dynamically updating a sortable list using RJS
I''ve got the following sortable list in one of my views:
<ul id="sortable_list" class="sortable_list">
<%= render(:partial => ''section'', :collection => @sections) %>
</ul>
<div class="new_section" id="new_section">
<%= form_remote_tag(:url => {:action => ''edit_se...
2006 Jan 21
1
Sortable Element with Partials?
Hi Everyone,
I posted this last month and unfortunately, I didn''t recieve any
replies. Maybe this time I''ll have better luck. I originally had my
sortable element list working properly like so:
<ul id="sortable_list">
<% @items.each do |item| %>
<li id="item_<%= item.id %>"><%= image_tag "dragme.gif" %><span
id="title_<%= item.id %>" class="title"> <%= item.value %></span> <span
class="actions">...
2006 Apr 10
1
Error When Sorting
...nts to line
52 in my controller and I have indicated that line).
#view
<!-- Question Data -->
<h2>Test Questions</h2>
<div id="list_questions">
<%= render(:partial => "list_questions") %>
</div>
<%= sortable_element("sortable_list", :complete =>
visual_effect(:highlight, "sortable_list"), :update => "question", :url
=> {:action => "update_question_positions", :id => @test.id }) %>
#view _list_questions
<ol id="sortable_list" class="sort">...
2006 Jan 07
1
Sortable Element with Partials??
Hi Everyone,
I originally had my sortable element list working properly like so:
<ul id="sortable_list">
<% @items.each do |item| %>
<li id="item_<%= item.id %>"><%= image_tag "dragme.gif" %><span
id="title_<%= item.id %>" class="title"> <%= item.value %></span> <span
class="actions"&...
2006 Feb 23
5
sortable_list added to by AJAX question
I have a working sortable_list that is added to by AJAX. The problem is
that when a new item is added, it''s not sortable. I found a post on
scriptaculous using behaviour.js to refresh the DOM when an item is
added, but I can''t figure out how to do it with Rails.
To test the behaviour method, I used this:...
2006 Feb 10
2
Sortable + Draggable : doesn''t follow the mouse horizontally
When a ''draggable'' element is made ''sortable'', it no longer follows the
mouse horizontally when you drag it.
Is there a solution/workaround?
TIA
Alain
2006 Feb 17
2
Sortable list: how to create a triggering "handle"/deactivate part of the <li> element?
Hi all,
When using sortable lists, a click anywhere in a <li> element will
trigger the "sort_by_dragging" mode, and have the clicked element follow
the mouse. The active area is the entire <li> element.
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