FS-7509: exit full screen on hangup

This commit is contained in:
Anthony Minessale 2015-03-05 13:09:31 -06:00 committed by Michael Jerris
parent 43de3e14eb
commit 5dc3c8e5ad

View File

@ -505,6 +505,7 @@ $(".dtmf").click(function(e) {
}); });
$("#hupbtn").click(function() { $("#hupbtn").click(function() {
exit_full_screen();
verto.hangup(); verto.hangup();
cur_call = null; cur_call = null;
}); });
@ -558,17 +559,21 @@ $(document).on('webkitfullscreenchange mozfullscreenchange fullscreenchange MSFu
}); });
$("#fullbtn").click(function() { function exit_full_screen()
{
if (!is_full) {
full_screen("fs");
} else {
if (document.webkitFullscreenEnabled) { if (document.webkitFullscreenEnabled) {
document.webkitExitFullscreen(); document.webkitExitFullscreen();
} else if (document.mozFullScreenEnabled) { } else if (document.mozFullScreenEnabled) {
document.mozExitFullScreen(); document.mozExitFullScreen();
} }
}
$("#fullbtn").click(function() {
if (!is_full) {
full_screen("fs");
} else {
exit_full_screen();
} }