small changes

pull/13/head
Jamie Rees 9 years ago
parent 3b0b0c521e
commit f2819664e7

@ -43,7 +43,9 @@ $(document).on("click", ".dropdownTv", function (e) {
// Click Request for movie // Click Request for movie
$(document).on("click", ".requestMovie", function (e) { $(document).on("click", ".requestMovie", function (e) {
$(".requestMovie").prop("disabled", true);
e.preventDefault(); e.preventDefault();
var buttonId = e.target.id; var buttonId = e.target.id;
var $form = $('#form' + buttonId); var $form = $('#form' + buttonId);

@ -49,7 +49,7 @@ namespace PlexRequests.UI.Jobs
private bool _shuttingDown; private bool _shuttingDown;
private ISettingsService<PlexSettings> Plex { get; } private ISettingsService<PlexSettings> Plex { get; }
private ISettingsService<AuthenticationSettings> Auth { get; } private ISettingsService<AuthenticationSettings> Auth { get; }
private IRequestService RequestService { get; set; } private IRequestService RequestService { get; }
public void CheckAndUpdate(string searchTerm, int id) public void CheckAndUpdate(string searchTerm, int id)
{ {
var plexSettings = Plex.GetSettings(); var plexSettings = Plex.GetSettings();
@ -67,6 +67,7 @@ namespace PlexRequests.UI.Jobs
public void CheckAndUpdateAll() public void CheckAndUpdateAll()
{ {
//TODO Observable collections to get and refresh the data every x minutes
var plexSettings = Plex.GetSettings(); var plexSettings = Plex.GetSettings();
var authSettings = Auth.GetSettings(); var authSettings = Auth.GetSettings();
var requests = RequestService.GetAll(); var requests = RequestService.GetAll();

@ -33,7 +33,7 @@ namespace PlexRequests.UI.Jobs
{ {
public PlexRegistry() public PlexRegistry()
{ {
Schedule<PlexAvailabilityChecker>().ToRunNow().AndEvery(2).Minutes(); Schedule<PlexAvailabilityChecker>().ToRunNow();
} }
} }
} }

@ -35,7 +35,6 @@ namespace PlexRequests.UI.Modules
{ {
// TODO: Check the settings to see if we need to authenticate // TODO: Check the settings to see if we need to authenticate
// TODO: Add ability to logout // 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: 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 // TODO: Allow the user of a username only or a Username and password
public class UserLoginModule : NancyModule public class UserLoginModule : NancyModule

Loading…
Cancel
Save