Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Commit

Permalink
fix: refresh transfer list
Browse files Browse the repository at this point in the history
requires the current page as a parameter in FIFA 21

fixes #229
  • Loading branch information
Mardaneus86 committed Oct 5, 2020
1 parent a5be0d1 commit ab60a95
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/transferlist/refresh-list.js
Expand Up @@ -39,10 +39,15 @@ class RefreshTransferList extends BaseScript {
if ($('.pagingContainer').find('.refresh').length === 0) {
$('.pagingContainer').append('<button class="flat pagination refresh" style="float: right;">Refresh list</button>');
$('.refresh').click(() => {
getAppMain().getRootViewController().getPresentedViewController()
const listController = getAppMain().getRootViewController()
.getPresentedViewController()
.getCurrentViewController()
.getCurrentController()
._listController._requestItems();
._listController;

const currentPage = listController._paginationViewModel._pageIndex;

listController._requestItems(currentPage);
});
}
}, 1000);
Expand Down

0 comments on commit ab60a95

Please sign in to comment.