mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-03 22:41:48 +01:00
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
This commit is contained in:
parent
3070d280ea
commit
d012a3ab71
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue