Collapse all indexer settings by default

This commit is contained in:
Mark McDowall 2012-10-07 12:50:16 -07:00
parent 8280561e11
commit 761863527b
4 changed files with 6 additions and 9 deletions

View File

@ -93,7 +93,7 @@
.indexer-global-settings
{
padding-top: 20px;
padding-bottom: 20px;
overflow: hidden;
}

View File

@ -27,6 +27,9 @@
autoHeight: false,
collapsible: true
});
if ($(this).hasClass('jquery-accordion-collapse-all'))
$(this).accordion("activate", false);
});
$('.jquery-tabs').livequery(function () {

View File

@ -58,7 +58,7 @@
}
@{Html.RenderAction("RootDir");}
<div class="jquery-accordion" id="addSeriesAccordion">
<div class="jquery-accordion jquery-accordion-collapse-all" id="addSeriesAccordion">
<h3>
<a href="#">Add New Series</a></h3>
<div id="addNewSeries">
@ -76,10 +76,6 @@
@Html.IncludeScript("NzbDrone/addSeries.js")
<script type="text/javascript">
$(document).ready(function () {
$('#addSeriesAccordion').accordion("activate", false);
});
$(document).on('click', '.tvDbLink', function (event) {
var url = $(this).attr('rel');
window.open(url, 'thetvdb');

View File

@ -7,8 +7,6 @@
margin-left: 14px;
}
</style>
<div class="infoBox">
RSS feeds are checked every 25 minutes for new episodes.</div>
<div class="indexerStatusContainer">
@Html.CheckBox("nzbMatrixStatus", @Model.NzbMatrixEnabled, new { @class = "indexerStatusButton" })
<label for="nzbMatrixStatus">NZBMatrix</label>
@ -37,7 +35,7 @@
<div id="stylized">
@using (Html.BeginForm("SaveIndexers", "Settings", FormMethod.Post, new { id = "IndexersForm", name = "IndexersForm", @class = "settingsForm" }))
{
<div class="jquery-accordion">
<div class="jquery-accordion jquery-accordion-collapse-all">
<h3><a href="#">NZBMatrix</a></h3>
<div class="indexerPanel">
<label class="labelClass">