mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-06 04:40:18 +01:00
start fixing sorting of projects
This commit is contained in:
parent
f284617513
commit
2c47b27a87
8 changed files with 33 additions and 18 deletions
2
app/views/projects/actionize.js.erb
Normal file
2
app/views/projects/actionize.js.erb
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
new_html = "<%= escape_javascript(render(:partial => 'project_listing', :collection => @projects)) %>";
|
||||
$("#list-<%=@state%>-projects").html(new_html);
|
||||
|
|
@ -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)
|
||||
|
||||
2
app/views/projects/alphabetize.js.erb
Normal file
2
app/views/projects/alphabetize.js.erb
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
new_html = "<%= escape_javascript(render(:partial => 'project_listing', :collection => @projects)) %>";
|
||||
$("#list-<%=@state%>-projects").html(new_html);
|
||||
|
|
@ -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)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue