Got the filter working on both movie and tv #57

This commit is contained in:
tidusjar 2016-03-21 19:05:01 +00:00
parent bbe2bcbfed
commit af6deec3f0
5 changed files with 29 additions and 15 deletions

View file

@ -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'
}
});
});
};