AutoComplete is now using jQuery UI AutoComplete.

Removed jquery.liveQuery.
This commit is contained in:
Mark McDowall 2011-09-08 20:26:48 -07:00
parent 59d4ae6219
commit d330c65165
14 changed files with 107 additions and 380 deletions

View file

@ -4,7 +4,6 @@ using System.IO;
using System.Linq;
using System.Web.Mvc;
using NLog;
using NzbDrone.Core.Helpers;
using NzbDrone.Core.Providers;
using NzbDrone.Core.Providers.Core;
using NzbDrone.Core.Providers.Jobs;
@ -170,12 +169,16 @@ namespace NzbDrone.Web.Controllers
}
[HttpGet]
public JsonResult LookupSeries(string q)
public JsonResult LookupSeries(string term)
{
var tvDbResults = _tvDbProvider.SearchSeries(term).Select(r => new TvDbSearchResultModel
{
Id = r.Id,
Title = r.SeriesName,
FirstAired = r.FirstAired.ToShortDateString()
}).ToList();
var dataVal = _tvDbProvider.SearchSeries(q);
return Json(dataVal.Select(c => new KeyValuePair<int, string>(c.Id, c.SeriesName)), JsonRequestBehavior.AllowGet);
return Json(tvDbResults, JsonRequestBehavior.AllowGet);
}
public ActionResult RootList()