<% if @query.grouped? && issue.send(@query.group_by) != group %>
<% group = issue.send(@query.group_by) %>
<% reset_cycle %>
- <tr class="group">
+ <tr class="group open">
<td colspan="<%= query.columns.size + 2 %>">
+ <span class="expander" onclick="toggleRowGroup(this); return false;"> </span>
<%= group.blank? ? 'None' : group %> <span class="count">(<%= @issue_count_by_group[group] %>)</span>
</td>
</tr>
Element.scrollTo(id);
}
+function toggleRowGroup(el) {
+ var tr = Element.up(el, 'tr');
+ var n = Element.next(tr);
+ tr.toggleClassName('open');
+ while (n != undefined && !n.hasClassName('group')) {
+ Element.toggle(n);
+ n = Element.next(n);
+ }
+}
+
var fileFieldCount = 1;
function addFileField() {
tr.entry td.size { text-align: right; font-size: 90%; }
tr.entry td.revision, tr.entry td.author { text-align: center; }
tr.entry td.age { text-align: right; }
-
-tr.entry span.expander {background-image: url(../images/bullet_toggle_plus.png); padding-left: 8px; margin-left: 0; cursor: pointer;}
-tr.entry.open span.expander {background-image: url(../images/bullet_toggle_minus.png);}
tr.entry.file td.filename a { margin-left: 16px; }
+tr span.expander {background-image: url(../images/bullet_toggle_plus.png); padding-left: 8px; margin-left: 0; cursor: pointer;}
+tr.open span.expander {background-image: url(../images/bullet_toggle_minus.png);}
+
tr.changeset td.author { text-align: center; width: 15%; }
tr.changeset td.committed_on { text-align: center; width: 15%; }