summaryrefslogtreecommitdiff
path: root/web/views/test/potlatch/category.erb
blob: 396e426313eca144c91b94a1557b5887a97b203b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<% @features.each do |row| %>
    <div>&nbsp;&nbsp;<a href="/test/potlatch/features/<%= escape row['name'] %>"><%= row['name'] %></a></div>
<% end %>
<script type="text/javascript">
jQuery('#features a').bind('click', function() {
    jQuery('#features div').removeClass('current');
    jQuery(this).parent().addClass('current');
    jQuery.ajax({
        url: this.href,
        success: function(html) {
            jQuery('#feature').html(html);
        }
    });
    return false;
});

</script>