replace new repeating todo form with jquery dialog. And some refactoring

This commit is contained in:
Reinier Balt 2011-11-17 17:07:55 +01:00
parent 4b6aff5502
commit 6aa8b8d2f9
9 changed files with 228 additions and 195 deletions

View file

@ -467,7 +467,11 @@ class RecurringTodo < ActiveRecord::Base
end
def starred?
tags.any? {|tag| tag.name == Todo::STARRED_TAG_NAME }
return has_tag?(Todo::STARRED_TAG_NAME)
end
def has_tag?(tag_name)
return self.tags.any? {|tag| tag.name == tag_name}
end
def get_due_date(previous)