mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
Another attempt at filtering #32
This commit is contained in:
parent
450fda6070
commit
7f40f0b86e
1 changed files with 11 additions and 2 deletions
|
@ -37,6 +37,7 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
||||||
|
|
||||||
var $ml = $('#movieList');
|
var $ml = $('#movieList');
|
||||||
var $tvl = $('#tvList');
|
var $tvl = $('#tvList');
|
||||||
|
var $musicL = $('#musicList');
|
||||||
|
|
||||||
$('.approve-category').hide();
|
$('.approve-category').hide();
|
||||||
if (target === "#TvShowTab") {
|
if (target === "#TvShowTab") {
|
||||||
|
@ -57,7 +58,16 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
||||||
if ($ml.mixItUp('isLoaded')) $ml.mixItUp('destroy');
|
if ($ml.mixItUp('isLoaded')) $ml.mixItUp('destroy');
|
||||||
$ml.mixItUp(mixItUpConfig(activeState)); // init or reinit
|
$ml.mixItUp(mixItUpConfig(activeState)); // init or reinit
|
||||||
}
|
}
|
||||||
//$('.mix[data-bound]').removeAttr('data-bound');
|
|
||||||
|
if (target === "#MusicTab") {
|
||||||
|
$('#approveMusic').show();
|
||||||
|
if ($musicL.mixItUp('isLoaded')) {
|
||||||
|
activeState = $musicL.mixItUp('getState');
|
||||||
|
$musicL.mixItUp('destroy');
|
||||||
|
}
|
||||||
|
if ($musicL.mixItUp('isLoaded')) $ml.mixItUp('destroy');
|
||||||
|
$musicL.mixItUp(mixItUpConfig(activeState)); // init or reinit
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Approve all
|
// Approve all
|
||||||
|
@ -424,7 +434,6 @@ function initLoad() {
|
||||||
movieLoad();
|
movieLoad();
|
||||||
tvLoad();
|
tvLoad();
|
||||||
albumLoad();
|
albumLoad();
|
||||||
//noResultsMusic
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function movieLoad() {
|
function movieLoad() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue