tweak arena redraw
parent
769aaef4da
commit
663e7ad074
|
@ -49,7 +49,7 @@ module.exports = function(env) {
|
|||
this.loadPage(this.data.standing);
|
||||
|
||||
var setPage = function(page) {
|
||||
m.redraw.strategy('all');
|
||||
// m.redraw.strategy('all');
|
||||
this.vm.page = page;
|
||||
xhr.loadPage(this, page)
|
||||
}.bind(this);
|
||||
|
@ -106,6 +106,7 @@ module.exports = function(env) {
|
|||
data: null
|
||||
};
|
||||
if (this.vm.playerInfo.id) xhr.playerInfo(this, this.vm.playerInfo.id);
|
||||
m.redraw();
|
||||
}.bind(this);
|
||||
|
||||
this.setPlayerInfoData = function(data) {
|
||||
|
|
|
@ -127,7 +127,12 @@ module.exports = {
|
|||
button.joinWithdraw(ctrl)
|
||||
])
|
||||
])),
|
||||
m('tbody', pag.currentPageResults.map(partial(playerTr, ctrl)))
|
||||
m('tbody', {
|
||||
config: function() {
|
||||
// reload user badges
|
||||
$('body').trigger('lichess.content_loaded');
|
||||
}
|
||||
}, pag.currentPageResults.map(partial(playerTr, ctrl)))
|
||||
];
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue