Better ajax notification for queued jobs.

This commit is contained in:
kay.one 2012-02-26 13:47:04 -08:00
parent 39be4c567d
commit 3aa0a8f9ee
4 changed files with 19 additions and 11 deletions

View file

@ -17,31 +17,34 @@ namespace NzbDrone.Web.Controllers
public JsonResult Search(int episodeId)
{
_jobProvider.QueueJob(typeof(EpisodeSearchJob), episodeId);
return JsonNotificationResult.Info("Queued");
return JsonNotificationResult.Queued("Episode search");
}
public JsonResult SearchSeason(int seriesId, int seasonNumber)
{
_jobProvider.QueueJob(typeof(SeasonSearchJob), seriesId, seasonNumber);
return JsonNotificationResult.Info("Queued");
return JsonNotificationResult.Queued("Season search");
}
public JsonResult BacklogSeries(int seriesId)
{
_jobProvider.QueueJob(typeof(SeriesSearchJob), seriesId);
return JsonNotificationResult.Info("Queued");
return JsonNotificationResult.Queued("Series Backlog");
}
public JsonResult RenameSeason(int seriesId, int seasonNumber)
{
_jobProvider.QueueJob(typeof(RenameSeasonJob), seriesId, seasonNumber);
return JsonNotificationResult.Info("Queued");
return JsonNotificationResult.Queued("Season rename");
}
public JsonResult RenameEpisodes(int seriesId)
{
_jobProvider.QueueJob(typeof(RenameSeriesJob), seriesId);
return JsonNotificationResult.Info("Queued");
return JsonNotificationResult.Queued("Series rename");
}
}
}