get nav selection working for the module nav

This commit is contained in:
Chris Eppstein 2010-11-21 16:28:03 -08:00
parent 3d18a3a124
commit e1d822b893

View File

@ -84,7 +84,7 @@ def item_tree(item, options = {})
contents = unless options[:omit_self] contents = unless options[:omit_self]
item_opts = { item_opts = {
:current_item => item, :current_item => item,
:selected => item.identifier == @item.identifier, :selected => !!@item.identifier[item.identifier],
:crumb => item[:crumb] || item[:title] :crumb => item[:crumb] || item[:title]
} }
if options[:heading_level] if options[:heading_level]