Cleaned up Quality partial page.

Fixed the sortable, so multiple user profiles correctly update order (and save), user profile sortable is no long connected.
This commit is contained in:
markus101 2011-02-11 22:10:38 -08:00
parent e7cbc4cbcf
commit baeda11ece
5 changed files with 44 additions and 59 deletions

View file

@ -137,6 +137,15 @@ namespace NzbDrone.Web.Controllers
return PartialView();
}
public QualityModel GetUpdatedProfileList()
{
var profiles = _qualityProvider.GetAllProfiles().ToList();
var defaultQualityProfileId = Convert.ToInt32(_configProvider.GetValue("DefaultQualityProfile", profiles[0].ProfileId, true));
var selectList = new SelectList(profiles, "ProfileId", "Name");
return new QualityModel {DefaultProfileId = defaultQualityProfileId, SelectList = selectList};
}
[HttpPost]
public ActionResult Index(SettingsModel data)
{