lobby: tab link selection, adjust colors

This commit is contained in:
jean-emmanuel 2017-07-12 21:46:00 +02:00
parent 6d4126cd29
commit e73ed05139
2 changed files with 31 additions and 2 deletions

View file

@ -49,7 +49,7 @@ var callbacks = module.exports = {
if (!window.READ_ONLY) {
}
list.append(`
<a class="btn load" data-session="${data[i]}">
<a href="#" tabIndex="0" class="btn load" data-session="${data[i]}">
${file} <em style="opacity:0.45">(${path})</em>
${window.READ_ONLY? '' : '<span>'+icon('remove')+'</span>'}
</a>
@ -58,6 +58,7 @@ var callbacks = module.exports = {
}
lobby.find('.load').click(function(e){
e.preventDefault()
e.stopPropagation()
ipc.send('sessionOpen',{path:$(this).data('session')})
})