1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-27 01:57:21 +00:00

Click row to see the details of that episode.

Alternate rows are coloured (along with the details)
This commit is contained in:
Mark McDowall 2012-02-04 12:08:39 -08:00 committed by kay.one
parent d7bc3a3734
commit a7c90351ac
3 changed files with 21 additions and 2 deletions

View file

@ -144,3 +144,8 @@ function saveEpisodeIgnore(episodeId, ignored) {
}
});
}
/* Click on row, show details */
$('.seriesTable tr').live('click', function() {
$(this).next('.detail-view').toggle();
});

View file

@ -75,9 +75,9 @@
padding: 2px;
border-style: inset;
border-color: #EEEEEE;
background-color: white;
padding-left: 7px;
text-align: left;
background-color: white;
}
.seriesTable td {
@ -87,6 +87,14 @@
border-color: #EEEEEE;
padding-left: 7px;
}
.detail-view {
display: none;
}
/* Colour alternating rows */
.seriesTable tr:nth-child(4n) {background: #E5ECF9}
.seriesTable tr:nth-child(4n+1) {background: #E5ECF9}
</style>
@section ActionMenu{
<ul class="sub-menu">

View file

@ -29,3 +29,9 @@
@Ajax.ImageActionLink("../../Content/Images/Rename.png", new { Alt = "Rename", Title = "Rename episode", @class = "renameImage" }, "Rename", "Episode", new { EpisodeFileId = Model.EpisodeFileId }, null, null)
</td>
</tr>
<tr class="detail-view">
<td colspan="5">
@Model.Overview <br />
<b>@Model.Path</b>
</td>
</tr>