From 84608ee355defe0d017ec3dfb81f688d3a21aa41 Mon Sep 17 00:00:00 2001 From: lrbalt Date: Mon, 12 May 2008 20:12:53 +0000 Subject: [PATCH] fixes the remote_function to set the state of the project. Fixes #707 git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@846 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/views/projects/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracks/app/views/projects/show.html.erb b/tracks/app/views/projects/show.html.erb index a5fbdc5e..0c7781e3 100644 --- a/tracks/app/views/projects/show.html.erb +++ b/tracks/app/views/projects/show.html.erb @@ -46,7 +46,7 @@ <% end %> <% apply_behavior "#project_status input:click", remote_function(:url => project_path(@project), :method => :put, - :with => "{wants_render: false, update_status: true, 'project[state]' : this.value}" ) + :with => "'wants_render=false&update_status=true&project[state]='+this.value" ) %>