mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 15:56:05 -07:00
move approve buttons to the tab content
This commit is contained in:
parent
e1b8293fdd
commit
07b02d90e6
2 changed files with 29 additions and 13 deletions
|
@ -30,8 +30,9 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
|||
var $ml = $('#movieList');
|
||||
var $tvl = $('#tvList');
|
||||
|
||||
$('.approve-category').hide();
|
||||
if (target === "#TvShowTab") {
|
||||
|
||||
$('#approveTVShows').show();
|
||||
if ($ml.mixItUp('isLoaded')) {
|
||||
activeState = $ml.mixItUp('getState');
|
||||
$ml.mixItUp('destroy');
|
||||
|
@ -40,6 +41,7 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
|||
$tvl.mixItUp(mixItUpConfig(activeState)); // init or reinit
|
||||
}
|
||||
if (target === "#MoviesTab") {
|
||||
$('#approveMovies').show();
|
||||
if ($tvl.mixItUp('isLoaded')) {
|
||||
activeState = $tvl.mixItUp('getState');
|
||||
$tvl.mixItUp('destroy');
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
@if (Context.CurrentUser.IsAuthenticated())
|
||||
{
|
||||
<button id="approveAll" class="btn btn-success-outline" type="submit"><i class="fa fa-plus"></i> Approve All</button>
|
||||
<button id="approveMovies" class="btn btn-success-outline" type="submit"><i class="fa fa-plus"></i> Approve Movies</button>
|
||||
<button id="approveTVShows" class="btn btn-success-outline" type="submit"><i class="fa fa-plus"></i> Approve TV Shows</button>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
}
|
||||
|
@ -22,10 +21,25 @@
|
|||
}
|
||||
|
||||
</ul>
|
||||
<br />
|
||||
|
||||
|
||||
<!-- Tab panes -->
|
||||
<div class="tab-content contentList">
|
||||
<div class="btn-group col-sm-push-10">
|
||||
<div class="btn-group col-sm-2">
|
||||
@if (Context.CurrentUser.IsAuthenticated())
|
||||
{
|
||||
@if (Model.SearchForMovies)
|
||||
{
|
||||
<button id="approveMovies" class="btn btn-success-outline approve-category" type="submit"><i class="fa fa-plus"></i> Approve Movies</button>
|
||||
}
|
||||
@if (Model.SearchForTvShows)
|
||||
{
|
||||
<button id="approveTVShows" class="btn btn-success-outline approve-category" type="submit" style="display: none;"><i class="fa fa-plus"></i> Approve TV Shows</button>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
<div class="btn-group col-sm-push-8">
|
||||
<a href="#" class="btn btn-primary-outline dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
||||
Filter
|
||||
<i class="fa fa-filter"></i>
|
||||
|
@ -38,7 +52,7 @@
|
|||
<li><a href="#" class="filter" data-filter=".available-false">Not Available</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="btn-group col-sm-push-10">
|
||||
<div class="btn-group col-sm-push-8">
|
||||
<a href="#" class="btn btn-primary-outline dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
|
||||
Order
|
||||
<i class="fa fa-sort"></i>
|
||||
|
@ -57,8 +71,8 @@
|
|||
<!-- Movie tab -->
|
||||
<div role="tabpanel" class="tab-pane active" id="MoviesTab">
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
<br />
|
||||
<br />
|
||||
<!-- Movie content -->
|
||||
<div id="movieList">
|
||||
</div>
|
||||
|
@ -70,8 +84,8 @@
|
|||
<!-- TV tab -->
|
||||
<div role="tabpanel" class="tab-pane" id="TvShowTab">
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
<br />
|
||||
<br />
|
||||
<!-- TV content -->
|
||||
<div id="tvList">
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue