Move 'closed' attribute to the row instead of the cell

This commit is contained in:
Robert Speicher 2012-10-10 13:06:34 -04:00
parent ce6e5f34d5
commit 7d145adf35
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
$ -> $ ->
$('.milestone-issue-filter td[data-closed]').addClass('hide') $('.milestone-issue-filter tr[data-closed]').addClass('hide')
$('.milestone-issue-filter ul.nav li a').click -> $('.milestone-issue-filter ul.nav li a').click ->
$('.milestone-issue-filter li').toggleClass('active') $('.milestone-issue-filter li').toggleClass('active')
$('.milestone-issue-filter td[data-closed]').toggleClass('hide') $('.milestone-issue-filter tr[data-closed]').toggleClass('hide')
false false

View file

@ -52,8 +52,8 @@
%li.active= link_to('Open Issues', '#') %li.active= link_to('Open Issues', '#')
%li=link_to('All Issues', '#') %li=link_to('All Issues', '#')
- @issues.each do |issue| - @issues.each do |issue|
%tr %tr{data: {closed: issue.closed}}
%td{data: {closed: issue.closed}} %td
= link_to [@project, issue] do = link_to [@project, issue] do
%span.badge.badge-info ##{issue.id} %span.badge.badge-info ##{issue.id}
– –