1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00

Missing functions

This commit is contained in:
DanielnetoDotCom 2021-05-01 08:47:25 -03:00
parent 06273135e8
commit 0826de71b7
7 changed files with 76 additions and 33 deletions

View file

@ -1030,7 +1030,16 @@ function avideoModalIframeWithClassName(url, className) {
}
function avideoModalIframeIsVisible() {
if ($('.swal-modal-iframe').parent().hasClass('swal-overlay--show-modal')) {
var modal = '';
if($('.swal-modal-iframe-small').length){
modal = $('.swal-modal-iframe-small');
}else if($('.swal-modal-iframe-large').length){
modal = $('.swal-modal-iframe-large');
}else{
modal = $('.swal-modal-iframe');
}
if (modal.parent().hasClass('swal-overlay--show-modal')) {
return true;
} else {
return false;