mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
e6712e5aa2
Removed old model binding for DataTablesParams (Logs no uses the one from DataTables.Mvc)
17 lines
548 B
C#
17 lines
548 B
C#
using DataTables.Mvc.Core.Helpers;
|
|
using DataTables.Mvc.Core.Models;
|
|
using System.Web.Mvc;
|
|
|
|
[assembly: WebActivator.PreApplicationStartMethod(typeof(NzbDrone.Web.App_Start.DataTablesModelBinderActivator), "Start")]
|
|
|
|
namespace NzbDrone.Web.App_Start
|
|
{
|
|
public static class DataTablesModelBinderActivator
|
|
{
|
|
public static void Start()
|
|
{
|
|
if (!ModelBinders.Binders.ContainsKey(typeof(DataTablesParams)))
|
|
ModelBinders.Binders.Add(typeof(DataTablesParams), new DataTablesModelBinder());
|
|
}
|
|
}
|
|
} |