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

@ -34,6 +34,11 @@ namespace NzbDrone.Web.Models
return GetJsonResult(NotificationType.Error, "Oops!", text);
}
public static JsonResult Queued(string task)
{
return GetJsonResult(NotificationType.Info, "Added to queue", string.Format("{0} will start soon.", task.Trim()));
}
public static JsonResult GetJsonResult(NotificationType notificationType, string title, string text)
{