mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-26 17:57:43 +00:00
Change from rebind() to ajaxRequest() for reloading the History grid, which keeps page and sort order.
This commit is contained in:
parent
80d7d38c7b
commit
706ea744b9
1 changed files with 3 additions and 2 deletions
|
@ -51,6 +51,8 @@ History
|
||||||
c =>
|
c =>
|
||||||
c.PageSize(20).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious))
|
c.PageSize(20).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious))
|
||||||
.Render();}
|
.Render();}
|
||||||
|
|
||||||
|
<button onclick="reloadHistoryGrid();">Reload Grid</button>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,8 +62,7 @@ History
|
||||||
|
|
||||||
function reloadHistoryGrid() {
|
function reloadHistoryGrid() {
|
||||||
var grid = $('#history').data('tGrid');
|
var grid = $('#history').data('tGrid');
|
||||||
grid.rebind();
|
grid.ajaxRequest();
|
||||||
grid.sort("Date-desc");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function deleteHistoryRow(historyId) {
|
function deleteHistoryRow(historyId) {
|
||||||
|
|
Loading…
Reference in a new issue