Bug #300: Disabled completion check box for pending items.

This commit is contained in:
Eric Allen 2009-11-04 22:38:27 -05:00
parent 74fcaf407c
commit 45dd524519

View file

@ -82,7 +82,8 @@ module TodosHelper
def remote_toggle_checkbox
check_box_tag('item_id', toggle_check_todo_path(@todo), @todo.completed?, :class => 'item-checkbox')
check_box_tag('item_id', toggle_check_todo_path(@todo), @todo.completed?, :class => 'item-checkbox',
:disabled => @todo.pending?)
end
def date_span