Pairing page: print pairables instead of games when no game yet
This commit is contained in:
@@ -169,4 +169,7 @@ onLoad(()=>{
|
||||
if (store.has('unpairablesScroll')) $('#unpairables')[0].scrollTop = store('unpairablesScroll');
|
||||
if (store.has('pairedScroll')) $('#paired')[0].scrollTop = store('pairedScroll');
|
||||
}, 0);
|
||||
if ($('#paired .listitem').length === 0) {
|
||||
$('body').addClass('nogame');
|
||||
}
|
||||
});
|
||||
|
@@ -20,7 +20,7 @@
|
||||
<button class="ui floating choose-round prev-round button">«</button>
|
||||
<span class="active-round">$round</span>
|
||||
<button class="ui floating choose-round next-round button">»</button>
|
||||
<span class="norbeak">( $pairables.size() pairable, $games.size() games )</span>
|
||||
<span class="pairing-stats nobreak">( $pairables.size() pairable, $games.size() games )</span>
|
||||
</div>
|
||||
<div id="pairing-lists">
|
||||
<div id="pairing-left">
|
||||
|
Reference in New Issue
Block a user