Added Season Monitored editor (linked from Season Count on Series Grid), It would be under AJAX Edit, but it won't play nice with lists.

Editor should support about 40 seasons without scrolling (TvDb doesn't list all seasons for large series)

Removed &pp=3 from SabProvider (it will use SAB's configured Post Processing value).
This commit is contained in:
Mark McDowall 2011-05-15 23:27:02 -07:00
parent fa2b609ad3
commit 9caacc4809
12 changed files with 308 additions and 31 deletions

View file

@ -44,6 +44,16 @@ namespace NzbDrone.Web.Controllers
_diskProvider = diskProvider;
}
public ActionResult Test()
{
return View();
}
public ActionResult TestPartial()
{
return View();
}
public ActionResult Index(string viewName)
{
if (viewName != null)
@ -317,29 +327,6 @@ namespace NzbDrone.Web.Controllers
}
}
public ActionResult AutoCompletePath(string path)
{
var windowsSep = path.LastIndexOf('\\');
if (windowsSep > -1)
{
var start = path.Substring(windowsSep + 1);
var dirs = _diskProvider.GetDirectories(path.Substring(0, windowsSep + 1)).Where(d => new DirectoryInfo(d).Name.ToLower().StartsWith(start.ToLower()));
return Content(String.Join("\n", dirs));
}
var index = path.LastIndexOf('/');
if (index > -1)
{
var start = path.Substring(index + 1);
var dirs = _diskProvider.GetDirectories(path.Substring(0, index + 1)).Where(d => new DirectoryInfo(d).Name.ToLower().StartsWith(start.ToLower()));
return Content(String.Join("\n", dirs));
}
return Content("");
}
public JsonResult JsonAutoCompletePath(string term)
{
var windowsSep = term.LastIndexOf('\\');