Skip to content

Commit a39f33b

Browse files
committed
made entire tile clickable
1 parent 903ff11 commit a39f33b

1 file changed

Lines changed: 21 additions & 21 deletions

File tree

TempMetroReportRestyling/orig.html

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -30,30 +30,30 @@ <h1>5</h1>
3030
</div>
3131
</div>
3232
<div class='tilerow' id='filterOptions'>
33-
<div class='tile one limebg' data-target-class="Passed">
34-
<a href="#">
33+
<a href="#">
34+
<div class='tile one limebg' data-target-class="Passed">
3535
<h4>PASSED</h4>
36-
<h1>2</h1>
37-
</a>
38-
</div>
39-
<div class='tile one redbg' data-target-class="Failed">
40-
<a href="#">
36+
<h1>2</h1>
37+
</div>
38+
</a>
39+
<a href="#">
40+
<div class='tile one redbg' data-target-class="Failed">
4141
<h4>FAILED</h4>
42-
<h1>1</h1>
43-
</a>
44-
</div>
45-
<div class='tile one orangebg' data-target-class="Inconclusive">
46-
<a href="#">
42+
<h1>1</h1>
43+
</div>
44+
</a>
45+
<a href="#">
46+
<div class='tile one orangebg' data-target-class="Inconclusive">
4747
<h4>INCONCLUSIVE</h4>
48-
<h1>1</h1>
49-
</a>
50-
</div>
51-
<div class='tile one bluebg' data-target-class="NotImplemented">
52-
<a href="#">
48+
<h1>1</h1>
49+
</div>
50+
</a>
51+
<a href="#">
52+
<div class='tile one bluebg' data-target-class="NotImplemented">
5353
<h4>NOT IMPLEMENTED</h4>
54-
<h1>1</h1>
55-
</a>
56-
</div>
54+
<h1>1</h1>
55+
</div>
56+
</a>
5757
</div>
5858
</div>
5959
</section>
@@ -221,7 +221,7 @@ <h3 class='storyTitle'>Story: Using metro style html report example</h3>
221221

222222

223223
$("#filterOptions a").click(function () {
224-
var tile = $(this).parent();
224+
var tile = $(this).children("div");
225225

226226
tile.toggleClass("filterTileDisabled");
227227

0 commit comments

Comments
 (0)