mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-17 12:48:08 +01:00
replace new repeating todo form with jquery dialog. And some refactoring
This commit is contained in:
parent
4b6aff5502
commit
6aa8b8d2f9
9 changed files with 228 additions and 195 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue