From b93e93326f2d4f3875fae3b024fa78347d4ecef8 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 20 Jan 2015 17:29:08 +0100 Subject: [PATCH] Remove focus on some buttons --- public/js/vroom.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/js/vroom.js b/public/js/vroom.js index fa29e30..b55644c 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -1714,6 +1714,7 @@ function initVroom(room) { else{ $('#lockLabel').removeClass('btn-danger active'); } + $('#lockLabel').removeClass('focus'); webrtc.sendToAll('room_lock', {action: action}); } else{ @@ -1748,8 +1749,10 @@ function initVroom(room) { $('#askForNameLabel').addClass('btn-danger active'); } 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}); } else{