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