mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 12:33:00 +02:00
Fixed: History grid loads faster (lazy loaded)
This commit is contained in:
17
packages/DataTables.Mvc.0.1.0.85/Content/App_Start/DataTablesMvc.cs.pp
vendored
Normal file
17
packages/DataTables.Mvc.0.1.0.85/Content/App_Start/DataTablesMvc.cs.pp
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
using DataTables.Mvc.Core.Helpers;
|
||||
using DataTables.Mvc.Core.Models;
|
||||
using System.Web.Mvc;
|
||||
|
||||
[assembly: WebActivator.PreApplicationStartMethod(typeof($rootnamespace$.App_Start.DataTablesModelBinderActivator), "Start")]
|
||||
|
||||
namespace $rootnamespace$.App_Start
|
||||
{
|
||||
public static class DataTablesModelBinderActivator
|
||||
{
|
||||
public static void Start()
|
||||
{
|
||||
if (!ModelBinders.Binders.ContainsKey(typeof(DataTablesPageRequest)))
|
||||
ModelBinders.Binders.Add(typeof(DataTablesPageRequest), new DataTablesModelBinder());
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user