mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-26 20:48:21 +00:00
FS-7509: exit full screen on hangup
This commit is contained in:
parent
43de3e14eb
commit
5dc3c8e5ad
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user