Autocompletion for predecessors working

This commit is contained in:
Eric Allen 2009-11-29 20:14:05 -05:00
parent d0a5f6b731
commit 71b0e188c1
5 changed files with 7 additions and 15 deletions

View file

@ -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