mirror of https://github.com/lidarr/Lidarr
15 lines
585 B
C#
15 lines
585 B
C#
using System.Web.Mvc;
|
|
using System.Web.WebPages;
|
|
//using RazorGenerator.Mvc;
|
|
|
|
[assembly: WebActivator.PreApplicationStartMethod(typeof(NzbDrone.Web.App_Start.RegisterDatatablesModelBinder), "Start")]
|
|
|
|
namespace NzbDrone.Web.App_Start {
|
|
public static class RegisterDatatablesModelBinder {
|
|
public static void Start() {
|
|
if (!ModelBinders.Binders.ContainsKey(typeof(Mvc.JQuery.Datatables.DataTablesParam)))
|
|
ModelBinders.Binders.Add(typeof(Mvc.JQuery.Datatables.DataTablesParam), new Mvc.JQuery.Datatables.DataTablesModelBinder());
|
|
}
|
|
}
|
|
}
|