Displaying 1 result from an estimated 1 matches for "right_list".
2007 Jul 19
1
Storing order of sortable objects in RoR
...eate("right",
{dropOnEmpty:true,containment:["left","right"],constraint:false,
onUpdate:updateOrder});
function updateOrder(){
var url = ''order'' //the action
var left_list = escape(Sortable.sequence(''left''));
var right_list = escape(Sortable.sequence(''right''));
var left_ids = unescape(left_list).split('','');
var right_ids = unescape(right_list).split('','');
new Ajax.Request(url, {
method: ''post'',
p...