Accordion will be closed on first load.

pull/2/head
Mark McDowall 13 years ago
parent 7edde4a242
commit 3dd8005b12

@ -3,9 +3,15 @@
@section Scripts @section Scripts
{ {
@Html.IncludeScript("NzbDrone/addSeries.js") @Html.IncludeScript("NzbDrone/addSeries.js")
<script type="text/javascript">
$(document).ready(function () {
$('#addSeriesAccordion').accordion("activate", false);
});
</script>
} }
@{Html.RenderAction("RootDir");} @{Html.RenderAction("RootDir");}
<div class="jquery-accordion"> <div class="jquery-accordion" id="addSeriesAccordion">
<h3> <h3>
<a href="#">Add New Series</a></h3> <a href="#">Add New Series</a></h3>
<div id="addNewSeries"> <div id="addNewSeries">
@ -16,4 +22,4 @@
<div id="existingSeries"> <div id="existingSeries">
@{ Html.RenderAction("ExistingSeries", "AddSeries"); } @{ Html.RenderAction("ExistingSeries", "AddSeries"); }
</div> </div>
</div> </div>
Loading…
Cancel
Save