Wait a bit before enabling owner's action button

As all the channels have to be ready first
master
Daniel Berteaud 11 years ago
parent fded08fef8
commit 319dd9a03e
  1. 20
      public/js/vroom.js

@ -374,16 +374,18 @@ function initVroom(room) {
id: 'actionKick_' + id,
click: function() { kickPeer(id) },
}).prop('title', locale.KICK_PEER)));
$(div).hover(
function(){
if (peers.local.role == 'owner'){
$('#ownerActions_' + id).show(200);
setTimeout (function(){
$(div).hover(
function(){
if (peers.local.role == 'owner'){
$('#ownerActions_' + id).show(200);
}
},
function(){
$('#ownerActions_' + id).hide(200);
}
},
function(){
$('#ownerActions_' + id).hide(200);
}
);
);
}, 3500);
// Create a new dataChannel
// will be used for text chat and displayName
var color = chooseColor();

Loading…
Cancel
Save