tweak arena redraw

pull/1093/merge
Thibault Duplessis 2015-10-05 11:31:57 +02:00
parent 769aaef4da
commit 663e7ad074
2 changed files with 8 additions and 2 deletions

View File

@ -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) {

View File

@ -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)))
];
}
};