Whoops. The last changeset broke marking todos as done/not-done. Fixed.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@670 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
lukemelia 2007-12-03 03:34:04 +00:00
parent e39287230f
commit 8c7afc4c32

View file

@ -63,7 +63,8 @@ module TodosHelper
def remote_toggle_checkbox
str = check_box_tag('item_id', toggle_check_todo_path(@todo), @todo.completed?, :class => 'item-checkbox')
apply_behavior '.item-container input.item-checkbox:click',
remote_to_href(:method => 'put', :with => "{ _source_view : '#{@source_view}' }")
remote_function(:url => javascript_variable('this.value'), :method => 'put',
:with => "{ _source_view : '#{@source_view}' }")
str
end