From e580372a76d38a5af1c9f36e4b317dddb34873d9 Mon Sep 17 00:00:00 2001 From: lukemelia Date: Mon, 16 Apr 2007 02:43:15 +0000 Subject: [PATCH] Fixed #496 (drag-sort after Sort Alphabetically on projects page is broken). However, the time it takes the browser to process the alphabetize Ajax response is unacceptably long. Not sure how to improve this yet. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@532 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/views/projects/alphabetize.rjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tracks/app/views/projects/alphabetize.rjs b/tracks/app/views/projects/alphabetize.rjs index 1522948d..ccb10451 100644 --- a/tracks/app/views/projects/alphabetize.rjs +++ b/tracks/app/views/projects/alphabetize.rjs @@ -1,3 +1,6 @@ -page.replace_html "list-#{@state}-projects", +list_id = "list-#{@state}-projects" +page.replace_html list_id, :partial => 'project_listing', - :collection => @projects \ No newline at end of file + :collection => @projects +page.sortable list_id, get_listing_sortable_options(list_id) + \ No newline at end of file