1
0
mirror of https://github.com/dani/vroom.git synced 2024-06-30 15:23:41 +02:00

Remove focus on some buttons

This commit is contained in:
Daniel Berteaud 2015-01-20 17:29:08 +01:00
parent 138bb5a5dd
commit b93e93326f

View File

@ -1714,6 +1714,7 @@ function initVroom(room) {
else{ else{
$('#lockLabel').removeClass('btn-danger active'); $('#lockLabel').removeClass('btn-danger active');
} }
$('#lockLabel').removeClass('focus');
webrtc.sendToAll('room_lock', {action: action}); webrtc.sendToAll('room_lock', {action: action});
} }
else{ else{
@ -1748,8 +1749,10 @@ function initVroom(room) {
$('#askForNameLabel').addClass('btn-danger active'); $('#askForNameLabel').addClass('btn-danger active');
} }
else{ else{
$('#askForNameLabel').removeClass('btn-danger active'); $('#askForNameLabel').removeClass('btn-danger active focus');
} }
// In any case, remove the focus
$('#askForNameLabel').removeClass('focus');
webrtc.sendToAll('ask_for_name', {action: set}); webrtc.sendToAll('ask_for_name', {action: set});
} }
else{ else{