mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-30 15:32:31 +01:00
Fixed some issues around EF and log view
This commit is contained in:
parent
9e37c894dd
commit
6e227f572d
@ -27,7 +27,7 @@ namespace NzbDrone.Web.Controllers
|
||||
}
|
||||
|
||||
[GridAction]
|
||||
public ActionResult _AjaxBinding()
|
||||
public ActionResult AjaxBinding()
|
||||
{
|
||||
return View(new GridModel(_logProvider.GetAllLogs()));
|
||||
}
|
||||
|
@ -45,9 +45,9 @@
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="EntityFramework, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
|
||||
<Reference Include="EntityFramework, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\packages\EntityFramework.4.1.10715.0\lib\EntityFramework.dll</HintPath>
|
||||
<HintPath>..\packages\EntityFramework.4.2.0.0\lib\net40\EntityFramework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
|
@ -23,11 +23,9 @@
|
||||
@section TitleContent{
|
||||
Logs
|
||||
}
|
||||
|
||||
@section ActionMenu{
|
||||
@{Html.RenderPartial("SubMenu");}
|
||||
}
|
||||
|
||||
@section MainContent{
|
||||
@{Html.Telerik().Grid<Log>().Name("logsGrid")
|
||||
.TableHtmlAttributes(new { @class = "Grid" })
|
||||
@ -43,20 +41,20 @@ Logs
|
||||
"<div><#= ExceptionType #></div>" +
|
||||
"<div class='stackframe'><#= Exception #></div>"
|
||||
))
|
||||
.DataBinding(data => data
|
||||
.Ajax()
|
||||
.OperationMode(GridOperationMode.Client)
|
||||
.Select("_AjaxBinding", "Log"))
|
||||
.DataBinding(data =>
|
||||
{
|
||||
data.Server().Select("AjaxBinding", "Log", new { ajax = true });
|
||||
data.Ajax().Select("AjaxBinding", "Log").Enabled(true);
|
||||
})
|
||||
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.Time).Descending()).Enabled(true))
|
||||
.Pageable(c => c.PageSize(50).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious))
|
||||
.Filterable()
|
||||
.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
|
||||
.Render();}
|
||||
}
|
||||
|
||||
<script type="text/javascript">
|
||||
function reloadGrid() {
|
||||
var grid = $('#logsGrid').data('tGrid');
|
||||
grid.rebind();
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="EntityFramework" version="4.1.10715.0" />
|
||||
<package id="EntityFramework" version="4.2.0.0" />
|
||||
<package id="EntityFramework.SqlServerCompact" version="4.1.8482.2" />
|
||||
<package id="jQuery" version="1.6.1" />
|
||||
<package id="jQuery" version="1.6.3" />
|
||||
|
Binary file not shown.
Binary file not shown.
13478
packages/EntityFramework.4.1.10715.0/lib/EntityFramework.xml
vendored
13478
packages/EntityFramework.4.1.10715.0/lib/EntityFramework.xml
vendored
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user