Displaying 1 result from an estimated 1 matches for "indented_categori".
Did you mean:
indented_categories
2006 Apr 07
13
Pop up menus - any ideas?
...Element.show(''subcategories_<%=category.name%>'')">
<%= link_to category.name, :action => ''category'', :id => category %>
<div id="subcategories_<%=category.name%>" style="display:none">
<div id="indented_categories">
<% for subcategory in category.subcategories %>
<%= link_to subcategory.name, :action => ''category'', :id =>
subcategory %>
<% end %>
</div></div>
<% end %>
Problems:
Obviously, the subcategories will never dissappear. I...