mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
small changes around the filtering
This commit is contained in:
parent
68f8b9cd71
commit
7d26842c3d
3 changed files with 22 additions and 11 deletions
|
@ -5,9 +5,7 @@ $info-colour: #5bc0de;
|
|||
$warning-colour: #f0ad4e;
|
||||
$danger-colour: #d9534f;
|
||||
$success-colour: #5cb85c;
|
||||
$i:
|
||||
!important
|
||||
;
|
||||
$i:!important;
|
||||
|
||||
@media (min-width: 768px ) {
|
||||
.row {
|
||||
|
|
|
@ -16,14 +16,31 @@ tvLoad();
|
|||
|
||||
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
||||
var target = $(e.target).attr('href');
|
||||
var activeState = "";
|
||||
if (target === "#TvShowTab") {
|
||||
if ($('#movieList').mixItUp('isLoaded')) {
|
||||
activeState = $('#movieList').mixItUp('getState');
|
||||
$('#movieList').mixItUp('destroy');
|
||||
}
|
||||
if (!$('#tvList').mixItUp('isLoaded')) {
|
||||
$('#tvList').mixItUp({
|
||||
layout: {
|
||||
display: 'block'
|
||||
},
|
||||
load: {
|
||||
filter: 'all'
|
||||
filter: activeState.activeFilter || 'all',
|
||||
sort: activeState.activeSort || 'default:asc'
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
if (target === "#MoviesTab") {
|
||||
if ($('#tvList').mixItUp('isLoaded')) {
|
||||
activeState = $('#tvList').mixItUp('getState');
|
||||
$('#tvList').mixItUp('destroy');
|
||||
}
|
||||
if (!$('#movieList').mixItUp('isLoaded')) {
|
||||
$('#movieList').mixItUp({
|
||||
load: {
|
||||
filter: activeState.activeFilter || 'all',
|
||||
sort: activeState.activeSort || 'default:asc'
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -6,9 +6,5 @@
|
|||
{
|
||||
"outputFile": "Content/pace.css",
|
||||
"inputFile": "Content/pace.scss"
|
||||
},
|
||||
{
|
||||
"outputFile": "Content/requests.es5.js",
|
||||
"inputFile": "Content/requests.js"
|
||||
}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue