2011-05-16 08:27:02 +02:00
|
|
|
@using NzbDrone.Web.Models;
|
|
|
|
@model List<SeasonEditModel>
|
|
|
|
@{
|
|
|
|
Layout = null;
|
|
|
|
}
|
2011-06-05 07:23:50 +02:00
|
|
|
<div style="vertical-align: middle">
|
|
|
|
@foreach (var season in Model)
|
|
|
|
{
|
|
|
|
Html.RenderAction("GetSingleSeasonView", "Series", season);
|
2011-05-16 08:27:02 +02:00
|
|
|
}
|
2011-06-05 07:23:50 +02:00
|
|
|
</div>
|
2011-06-28 04:24:42 +02:00
|
|
|
@section Scripts{
|
|
|
|
<script type="text/javascript">
|
|
|
|
var lastChecked = null;
|
2011-05-17 01:57:02 +02:00
|
|
|
|
2011-06-28 04:24:42 +02:00
|
|
|
$(document).ready(function () {
|
|
|
|
$('.chkbox').click(function (event) {
|
|
|
|
if (!lastChecked) {
|
|
|
|
lastChecked = this;
|
|
|
|
return;
|
|
|
|
}
|
2011-05-17 01:57:02 +02:00
|
|
|
|
2011-06-28 04:24:42 +02:00
|
|
|
if (event.shiftKey) {
|
|
|
|
var start = $('.chkbox').index(this);
|
|
|
|
var end = $('.chkbox').index(lastChecked);
|
2011-05-17 01:57:02 +02:00
|
|
|
|
2011-06-28 04:24:42 +02:00
|
|
|
for (i = Math.min(start, end); i <= Math.max(start, end); i++) {
|
|
|
|
$('.chkbox')[i].checked = lastChecked.checked;
|
|
|
|
}
|
2011-05-17 01:57:02 +02:00
|
|
|
}
|
|
|
|
|
2011-06-28 04:24:42 +02:00
|
|
|
lastChecked = this;
|
|
|
|
});
|
2011-05-17 01:57:02 +02:00
|
|
|
});
|
2011-06-28 04:24:42 +02:00
|
|
|
</script>
|
|
|
|
}
|