1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-25 01:06:30 +00:00
Sonarr/NzbDrone.Web/Views/AddSeries/Index.cshtml

80 lines
1.7 KiB
Text
Raw Normal View History

@using NzbDrone.Web.Helpers
@{ViewBag.Title = "Add Series";}
@section HeaderContent
2011-11-27 06:31:13 +00:00
{
<style>
.existingSeries
{
border-color: #f2f2f2;
border-width: 1px;
border-style: solid;
background-color: #f2f2f2;
margin: 0px 10px 10px 0px;
padding: 5px;
display: block;
}
.masterQualitySelector
{
left: 415px;
position: relative;
}
.seriesPathValue
{
display: block;
}
.existingSeriesContainer
{
position: relative;
}
.ui-autocomplete.seriesLookupResults {
max-height: 180px;
overflow-y: auto;
/* prevent horizontal scrollbar */
overflow-x: hidden;
}
.tvDbLink {
float: right;
}
.tvDbLink:hover {
cursor: pointer;
text-decoration: underline;
}
</style>
2011-11-27 06:31:13 +00:00
}
2011-12-01 05:06:02 +00:00
@{Html.RenderAction("RootDir");}
<div class="jquery-accordion" id="addSeriesAccordion">
<h3>
<a href="#">Add New Series</a></h3>
<div id="addNewSeries">
@{ Html.RenderAction("AddNew", "AddSeries"); }
</div>
<h3>
<a href="#">Add Series Already on Disk</a></h3>
<div id="existingSeries">
@{ Html.RenderAction("ExistingSeries", "AddSeries"); }
</div>
</div>
@section Scripts
{
@Html.IncludeScript("NzbDrone/addSeries.js")
<script type="text/javascript">
$(document).ready(function () {
$('#addSeriesAccordion').accordion("activate", false);
});
2012-03-03 04:28:40 +00:00
$(document).on('click', '.tvDbLink', function (event) {
var url = $(this).attr('rel');
window.open(url, 'thetvdb');
2012-03-03 04:28:40 +00:00
event.preventDefault();
});
</script>
}