From f2819664e76b696d0e764a8c995ec3253764c9b9 Mon Sep 17 00:00:00 2001 From: Jamie Rees Date: Sun, 6 Mar 2016 21:44:20 +0000 Subject: [PATCH] small changes --- PlexRequests.UI/Content/search.js | 2 ++ PlexRequests.UI/Jobs/PlexAvailabilityChecker.cs | 3 ++- PlexRequests.UI/Jobs/PlexRegistry.cs | 2 +- PlexRequests.UI/Modules/UserLoginModule.cs | 1 - 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/PlexRequests.UI/Content/search.js b/PlexRequests.UI/Content/search.js index 99c6f23b1..479d80d8f 100644 --- a/PlexRequests.UI/Content/search.js +++ b/PlexRequests.UI/Content/search.js @@ -43,7 +43,9 @@ $(document).on("click", ".dropdownTv", function (e) { // Click Request for movie $(document).on("click", ".requestMovie", function (e) { + $(".requestMovie").prop("disabled", true); e.preventDefault(); + var buttonId = e.target.id; var $form = $('#form' + buttonId); diff --git a/PlexRequests.UI/Jobs/PlexAvailabilityChecker.cs b/PlexRequests.UI/Jobs/PlexAvailabilityChecker.cs index a443a4d00..1da5aa1ef 100644 --- a/PlexRequests.UI/Jobs/PlexAvailabilityChecker.cs +++ b/PlexRequests.UI/Jobs/PlexAvailabilityChecker.cs @@ -49,7 +49,7 @@ namespace PlexRequests.UI.Jobs private bool _shuttingDown; private ISettingsService Plex { get; } private ISettingsService Auth { get; } - private IRequestService RequestService { get; set; } + private IRequestService RequestService { get; } public void CheckAndUpdate(string searchTerm, int id) { var plexSettings = Plex.GetSettings(); @@ -67,6 +67,7 @@ namespace PlexRequests.UI.Jobs public void CheckAndUpdateAll() { + //TODO Observable collections to get and refresh the data every x minutes var plexSettings = Plex.GetSettings(); var authSettings = Auth.GetSettings(); var requests = RequestService.GetAll(); diff --git a/PlexRequests.UI/Jobs/PlexRegistry.cs b/PlexRequests.UI/Jobs/PlexRegistry.cs index 650f020b5..acea7f3bf 100644 --- a/PlexRequests.UI/Jobs/PlexRegistry.cs +++ b/PlexRequests.UI/Jobs/PlexRegistry.cs @@ -33,7 +33,7 @@ namespace PlexRequests.UI.Jobs { public PlexRegistry() { - Schedule().ToRunNow().AndEvery(2).Minutes(); + Schedule().ToRunNow(); } } } \ No newline at end of file diff --git a/PlexRequests.UI/Modules/UserLoginModule.cs b/PlexRequests.UI/Modules/UserLoginModule.cs index 728e1a0fb..d8292a05b 100644 --- a/PlexRequests.UI/Modules/UserLoginModule.cs +++ b/PlexRequests.UI/Modules/UserLoginModule.cs @@ -35,7 +35,6 @@ namespace PlexRequests.UI.Modules { // TODO: Check the settings to see if we need to authenticate // TODO: Add ability to logout - // TODO: Create UserLogin page // TODO: If we need to authenticate we need to check if they are in Plex // TODO: Allow the user of a username only or a Username and password public class UserLoginModule : NancyModule