diff --git a/Ombi.UI/Content/requests.js b/Ombi.UI/Content/requests.js
index 4d9a13b5e..132bb7232 100644
--- a/Ombi.UI/Content/requests.js
+++ b/Ombi.UI/Content/requests.js
@@ -745,7 +745,8 @@ function actorLoad() {
}
$ml.html("");
- var url = createBaseUrl(base, '/requests/actor');
+ var $newOnly = $('#searchNewOnly').val();
+ var url = createBaseUrl(base, '/requests/actor' + (!!$newOnly ? '/new' : ''));
$.ajax(url).success(function (results) {
if (results.length > 0) {
results.forEach(function (result) {
diff --git a/Ombi.UI/Content/search.js b/Ombi.UI/Content/search.js
index 51c4011cd..cc4849ecd 100644
--- a/Ombi.UI/Content/search.js
+++ b/Ombi.UI/Content/search.js
@@ -65,14 +65,23 @@ $(function () {
// Type in actor search
$("#actorSearchContent").on("input", function () {
+ triggerActorSearch();
+ });
+
+ // if they toggle the checkbox, we want to refresh our search
+ $("#actorsSearchNew").click(function () {
+ triggerActorSearch();
+ });
+
+ function triggerActorSearch()
+ {
if (searchTimer) {
clearTimeout(searchTimer);
}
searchTimer = setTimeout(function () {
moviesFromActor();
}.bind(this), 800);
-
- });
+ }
$('#moviesComingSoon').on('click', function (e) {
e.preventDefault();
@@ -326,7 +335,8 @@ $(function () {
function moviesFromActor() {
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");
}
diff --git a/Ombi.UI/Resources/UI.resx b/Ombi.UI/Resources/UI.resx
index 7144696a1..d87972cff 100644
--- a/Ombi.UI/Resources/UI.resx
+++ b/Ombi.UI/Resources/UI.resx
@@ -211,6 +211,9 @@