mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-14 00:16:15 +01:00
Autocompletion for predecessors working
This commit is contained in:
parent
d0a5f6b731
commit
71b0e188c1
5 changed files with 7 additions and 15 deletions
|
|
@ -313,12 +313,7 @@ module TodosHelper
|
|||
end
|
||||
|
||||
def auto_complete_result2(entries, phrase = nil)
|
||||
return unless entries
|
||||
items = entries.map do |entry|
|
||||
item = entry.specification()
|
||||
content_tag("li", phrase ? highlight(h(item), phrase) : h(item))
|
||||
end
|
||||
content_tag("ul", items.uniq)
|
||||
return entries.map{|e| e.specification()}.join("\n") rescue ''
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue