start fixing sorting of projects

This commit is contained in:
Reinier Balt 2010-10-20 09:00:04 +02:00
parent f284617513
commit 2c47b27a87
8 changed files with 33 additions and 18 deletions

View file

@ -0,0 +1,2 @@
new_html = "<%= escape_javascript(render(:partial => 'project_listing', :collection => @projects)) %>";
$("#list-<%=@state%>-projects").html(new_html);

View file

@ -1,6 +0,0 @@
list_id = "list-#{@state}-projects"
page.replace_html list_id,
:partial => 'project_listing',
:collection => @projects
page.sortable list_id, get_listing_sortable_options(list_id)

View file

@ -0,0 +1,2 @@
new_html = "<%= escape_javascript(render(:partial => 'project_listing', :collection => @projects)) %>";
$("#list-<%=@state%>-projects").html(new_html);

View file

@ -1,6 +0,0 @@
list_id = "list-#{@state}-projects"
page.replace_html list_id,
:partial => 'project_listing',
:collection => @projects
page.sortable list_id, get_listing_sortable_options(list_id)