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

Loading…
Cancel
Save