|
|
@ -65,14 +65,23 @@ $(function () {
|
|
|
|
|
|
|
|
|
|
|
|
// Type in actor search
|
|
|
|
// Type in actor search
|
|
|
|
$("#actorSearchContent").on("input", function () {
|
|
|
|
$("#actorSearchContent").on("input", function () {
|
|
|
|
|
|
|
|
triggerActorSearch();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if they toggle the checkbox, we want to refresh our search
|
|
|
|
|
|
|
|
$("#actorsSearchNew").click(function () {
|
|
|
|
|
|
|
|
triggerActorSearch();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function triggerActorSearch()
|
|
|
|
|
|
|
|
{
|
|
|
|
if (searchTimer) {
|
|
|
|
if (searchTimer) {
|
|
|
|
clearTimeout(searchTimer);
|
|
|
|
clearTimeout(searchTimer);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
searchTimer = setTimeout(function () {
|
|
|
|
searchTimer = setTimeout(function () {
|
|
|
|
moviesFromActor();
|
|
|
|
moviesFromActor();
|
|
|
|
}.bind(this), 800);
|
|
|
|
}.bind(this), 800);
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('#moviesComingSoon').on('click', function (e) {
|
|
|
|
$('#moviesComingSoon').on('click', function (e) {
|
|
|
|
e.preventDefault();
|
|
|
|
e.preventDefault();
|
|
|
@ -326,7 +335,8 @@ $(function () {
|
|
|
|
|
|
|
|
|
|
|
|
function moviesFromActor() {
|
|
|
|
function moviesFromActor() {
|
|
|
|
var query = $("#actorSearchContent").val();
|
|
|
|
var query = $("#actorSearchContent").val();
|
|
|
|
var url = createBaseUrl(base, '/search/actor/');
|
|
|
|
var $newOnly = $('#actorsSearchNew')[0].checked;
|
|
|
|
|
|
|
|
var url = createBaseUrl(base, '/search/actor/' + (!!$newOnly ? 'new/' : ''));
|
|
|
|
query ? getMovies(url + query, "#actorMovieList", "#actorSearchButton") : resetMovies("#actorMovieList");
|
|
|
|
query ? getMovies(url + query, "#actorMovieList", "#actorSearchButton") : resetMovies("#actorMovieList");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|