From 3563f166c9237206a9d28752e1415cf7c6945431 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Wed, 29 Jun 2016 09:02:03 +0100 Subject: [PATCH] Fixed an issue where we didn't provide the correct response when clearing the logs --- PlexRequests.UI/Modules/AdminModule.cs | 2 +- PlexRequests.UI/Views/Admin/Logs.cshtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PlexRequests.UI/Modules/AdminModule.cs b/PlexRequests.UI/Modules/AdminModule.cs index ab1b8cb4d..8370d0907 100644 --- a/PlexRequests.UI/Modules/AdminModule.cs +++ b/PlexRequests.UI/Modules/AdminModule.cs @@ -903,7 +903,7 @@ namespace PlexRequests.UI.Modules { await LogsRepo.DeleteAsync(logEntity); } - return Response.AsJson(new JsonResponseModel { Result = true }); + return Response.AsJson(new JsonResponseModel { Result = true, Message = "Logs cleared successfully."}); } catch (Exception e) { diff --git a/PlexRequests.UI/Views/Admin/Logs.cshtml b/PlexRequests.UI/Views/Admin/Logs.cshtml index 8e7b2a096..233b703c2 100644 --- a/PlexRequests.UI/Views/Admin/Logs.cshtml +++ b/PlexRequests.UI/Views/Admin/Logs.cshtml @@ -124,7 +124,7 @@ }); }); - $('#clearLogs').click(function() { + $('#clearLogs').click(function(e) { e.preventDefault(); var $form = $("#clearForm");