Fix: Add Series Series lookup will show an AJAX wheel when loading.

pull/4/head
Mark McDowall 13 years ago
parent f2f0cf81fe
commit 4b903f2291

@ -5,33 +5,7 @@
@{ @{
Layout = null; Layout = null;
} }
<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;
}
</style>
@if (Model.ExistingSeries.Count == 0) @if (Model.ExistingSeries.Count == 0)
{ {
<h3 style="color: tomato"> <h3 style="color: tomato">

@ -1,15 +1,43 @@
@using NzbDrone.Web.Helpers @using NzbDrone.Web.Helpers
@{ViewBag.Title = "Add Series";} @{ViewBag.Title = "Add Series";}
@section Scripts
@section HeaderContent
{ {
@Html.IncludeScript("NzbDrone/addSeries.js") <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;
}
#newSeriesLookup.ui-autocomplete-loading {
background: white url('../../Content/Images/ajax-loader.gif') 99% center no-repeat;
background-size: 18px 18px
<script type="text/javascript"> }
$(document).ready(function () { </style>
$('#addSeriesAccordion').accordion("activate", false);
});
</script>
} }
@{Html.RenderAction("RootDir");} @{Html.RenderAction("RootDir");}
<div class="jquery-accordion" id="addSeriesAccordion"> <div class="jquery-accordion" id="addSeriesAccordion">
<h3> <h3>
@ -22,4 +50,15 @@
<div id="existingSeries"> <div id="existingSeries">
@{ Html.RenderAction("ExistingSeries", "AddSeries"); } @{ Html.RenderAction("ExistingSeries", "AddSeries"); }
</div> </div>
</div> </div>
@section Scripts
{
@Html.IncludeScript("NzbDrone/addSeries.js")
<script type="text/javascript">
$(document).ready(function () {
$('#addSeriesAccordion').accordion("activate", false);
});
</script>
}
Loading…
Cancel
Save