mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-17 01:36:31 +01:00
Merge pull request #1874 from C-Otto/tracks-1835
(2.3) remove all tab indices
This commit is contained in:
commit
dcc13981cc
13 changed files with 53 additions and 68 deletions
|
|
@ -409,18 +409,6 @@ module TodosHelper
|
|||
return html
|
||||
end
|
||||
|
||||
def reset_tab_index
|
||||
$tracks_tab_index = 0
|
||||
end
|
||||
|
||||
def next_tab_index
|
||||
# make sure it exists if reset was not called. Set to 20 to avoid clashes with existing form in sidebar
|
||||
$tracks_tab_index ||= 20
|
||||
|
||||
$tracks_tab_index = $tracks_tab_index + 1
|
||||
return $tracks_tab_index
|
||||
end
|
||||
|
||||
def feed_content_for_todo(todo)
|
||||
item_notes = todo.notes ? todo.rendered_notes : ''
|
||||
due = todo.due ? content_tag(:div, t('todos.feeds.due', :date => format_date(todo.due))) : ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue