From d012a3ab719c114bea0e4698d594026ca452bf7d Mon Sep 17 00:00:00 2001 From: lukemelia Date: Tue, 6 Feb 2007 13:43:16 +0000 Subject: [PATCH] Fixes bug #435 introduced in the last changeset that prevented actions from being marked complete in Safari (how unproductive!). On a related note, a fair amount of javascript has changed, so please do try it out on your favorite browser and add any other cross-browser issues to the Trac. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@434 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/app/helpers/todos_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tracks/app/helpers/todos_helper.rb b/tracks/app/helpers/todos_helper.rb index 1f473ea0..19ff8ee5 100644 --- a/tracks/app/helpers/todos_helper.rb +++ b/tracks/app/helpers/todos_helper.rb @@ -39,9 +39,9 @@ module TodosHelper end def remote_toggle_checkbox(item) - str = check_box_tag('item_id', item.id, item.completed?, :class => 'item-checkbox', :url => toggle_check_todo_path(item)) + str = check_box_tag('item_id', toggle_check_todo_path(item), item.completed?, :class => 'item-checkbox') apply_behavior '.item-container input.item-checkbox:click', - remote_function(:url => javascript_variable('this.attributes.url.value'), + remote_function(:url => javascript_variable('this.value'), :with => "{ method : 'post', _source_view : '#{@source_view}' }") str end