finishings on the pairing page

This commit is contained in:
Claude Brisson
2023-12-28 09:18:16 +01:00
parent 149541cb3c
commit 83b9194b48
7 changed files with 74 additions and 29 deletions

View File

@@ -51,6 +51,7 @@ onLoad(()=>{
$('#unpair').on('click', e => {
let games = $('#paired')[0].childNodes.filter('.selected.listitem').map(item => parseInt(item.data("id")));
if (games.length == 0) {
$('#paired .listitem').addClass('selected');
games = $('#paired')[0].childNodes.filter('.selected.listitem').map(item => parseInt(item.data("id")));
}
unpair(games);