|
|
@ -1958,11 +1958,23 @@ function initVroom(room) { |
|
|
|
// Handle hangup/close window
|
|
|
|
// Handle hangup/close window
|
|
|
|
$('#logoutButton').click(function(){ |
|
|
|
$('#logoutButton').click(function(){ |
|
|
|
$('#quitModal').modal('show'); |
|
|
|
$('#quitModal').modal('show'); |
|
|
|
|
|
|
|
if (!$('#muteMicButton').is(':checked')){ |
|
|
|
|
|
|
|
muteMic(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (!$('#suspendCamButton').is(':checked')){ |
|
|
|
|
|
|
|
suspendCam(); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
// Remove the active class on the logout button if
|
|
|
|
// Remove the active class on the logout button if
|
|
|
|
// the modal is closed
|
|
|
|
// the modal is closed
|
|
|
|
$('#quitModal').on('hide.bs.modal',function(){ |
|
|
|
$('#quitModal').on('hide.bs.modal',function(){ |
|
|
|
$('#logoutButton').removeClass('active'); |
|
|
|
$('#logoutButton').removeClass('active'); |
|
|
|
|
|
|
|
if (!$('#muteMicButton').is(':checked')){ |
|
|
|
|
|
|
|
unmuteMic(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (!$('#suspendCamButton').is(':checked')){ |
|
|
|
|
|
|
|
resumeCam(); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
$('#confirmQuitButton').click(function() { |
|
|
|
$('#confirmQuitButton').click(function() { |
|
|
|
hangupCall; |
|
|
|
hangupCall; |
|
|
|