mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Got the filter working on both movie and tv #57
This commit is contained in:
parent
bbe2bcbfed
commit
af6deec3f0
5 changed files with 29 additions and 15 deletions
|
@ -14,6 +14,22 @@ movieLoad();
|
|||
tvLoad();
|
||||
|
||||
|
||||
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
|
||||
var target = $(e.target).attr('href');
|
||||
if (target === "#TvShowTab") {
|
||||
if (!$('#tvList').mixItUp('isLoaded')) {
|
||||
$('#tvList').mixItUp({
|
||||
layout: {
|
||||
display: 'block'
|
||||
},
|
||||
load: {
|
||||
filter: 'all'
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Approve all
|
||||
$('#approveAll').click(function () {
|
||||
$.ajax({
|
||||
|
@ -283,7 +299,6 @@ function movieLoad() {
|
|||
filter: 'all'
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -296,14 +311,6 @@ function tvLoad() {
|
|||
var html = searchTemplate(context);
|
||||
$("#tvList").append(html);
|
||||
});
|
||||
$('#tvList').mixItUp({
|
||||
layout: {
|
||||
display: 'block'
|
||||
},
|
||||
load: {
|
||||
filter: 'all'
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue