show the movie/show title when requesting.

pull/102/head
Drewster727 9 years ago
parent 29de229203
commit 5b93282b78

@ -91,7 +91,7 @@ function sendRequestAjax(data, type, url, buttonId) {
success: function (response) {
console.log(response);
if (response.result === true) {
generateNotify("Success!", "success");
generateNotify(response.message || "Success!", "success");
$('#' + buttonId).html("<i class='fa fa-check'></i> Requested");
$('#' + buttonId).removeClass("btn-primary-outline");

@ -282,7 +282,7 @@ namespace PlexRequests.UI.Modules
var notificationModel = new NotificationModel { Title = model.Title, User = model.RequestedBy, DateTime = DateTime.Now, NotificationType = NotificationType.NewRequest };
NotificationService.Publish(notificationModel);
return Response.AsJson(new JsonResponseModel { Result = true });
return Response.AsJson(new JsonResponseModel { Result = true, Message = $"{model.Title} was successfully added!" });
}
catch (Exception e)
{
@ -408,7 +408,7 @@ namespace PlexRequests.UI.Modules
var notificationModel = new NotificationModel { Title = model.Title, User = model.RequestedBy, DateTime = DateTime.Now, NotificationType = NotificationType.NewRequest };
NotificationService.Publish(notificationModel);
return Response.AsJson(new { Result = true });
return Response.AsJson(new JsonResponseModel { Result = true, Message = $"{model.Title} was successfully added!" });
}
private bool CheckIfTitleExistsInPlex(string title, string year)

Loading…
Cancel
Save