diff --git a/public/js/vroom.js b/public/js/vroom.js index 2d4085e..dcac84d 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -9,6 +9,9 @@ Daniel Berteaud $.notify.defaults( { globalPosition: 'bottom left' } ); // Enable tooltip on required elements $('.help').tooltip({container: 'body'}); +$('.modal').on('show.bs.modal', function(){ + $('.help').tooltip('hide'); +}); // Enable bootstrap-swicth $('.bs-switch').bootstrapSwitch(); @@ -537,7 +540,7 @@ function initVroom(room) { peers[id].role = data.role; if (data.role == 'owner'){ // If this peer is a owner, we add the mark on its preview - $('#overlay_' + id).append($('
').attr('id', 'owner_' + id).addClass('owner')); + $('#overlay_' + id).append($('
').attr('id', 'owner_' + id).addClass('owner hidden-xs')); // And we disable owner's action for him $('#ownerActions_' + id).remove(); } @@ -643,10 +646,10 @@ function initVroom(room) { // the owner actions (overlay) $('
').addClass('volumeBar').attr('id', 'volume_' + id).appendTo(div); $('
').addClass('displayName').attr('id', 'name_' + id).appendTo(div); - $('
').attr('id', 'overlay_' + id).appendTo(div); + $('
').attr('id', 'overlay_' + id).addClass('hidden-xs').appendTo(div); // Will contains per peer action menu (mute/pause/kick), but will only be displayed // on owners screen - $('
').addClass('ownerActions').attr('id', 'ownerActions_' + id).appendTo(div) + $('
').addClass('ownerActions hidden-xs').attr('id', 'ownerActions_' + id).appendTo(div) .append($('
',{ class: 'btn-group' })