mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-27 18:28:19 +00:00
206144d7e3
UI is still pretty much fucked.
36 lines
980 B
Text
36 lines
980 B
Text
@using NzbDrone.Web.Models;
|
|
@model List<SeasonEditModel>
|
|
@{
|
|
Layout = null;
|
|
}
|
|
<div style="vertical-align: middle">
|
|
@foreach (var season in Model)
|
|
{
|
|
Html.RenderAction("GetSingleSeasonView", "Series", season);
|
|
}
|
|
</div>
|
|
@section Scripts{
|
|
<script type="text/javascript">
|
|
var lastChecked = null;
|
|
|
|
$(document).ready(function () {
|
|
$('.chkbox').click(function (event) {
|
|
if (!lastChecked) {
|
|
lastChecked = this;
|
|
return;
|
|
}
|
|
|
|
if (event.shiftKey) {
|
|
var start = $('.chkbox').index(this);
|
|
var end = $('.chkbox').index(lastChecked);
|
|
|
|
for (i = Math.min(start, end); i <= Math.max(start, end); i++) {
|
|
$('.chkbox')[i].checked = lastChecked.checked;
|
|
}
|
|
}
|
|
|
|
lastChecked = this;
|
|
});
|
|
});
|
|
</script>
|
|
}
|