mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
update
This commit is contained in:
parent
7ddce01f98
commit
a29f6d44d8
1 changed files with 11 additions and 0 deletions
|
@ -2259,6 +2259,7 @@ function getCroppie(uploadCropObject, callback, width, height) {
|
|||
}
|
||||
|
||||
let tooltipTimeout = null;
|
||||
let isExecutingTooltip = false;
|
||||
|
||||
async function setToolTips() {
|
||||
if (tooltipTimeout) {
|
||||
|
@ -2266,9 +2267,16 @@ async function setToolTips() {
|
|||
tooltipTimeout = null;
|
||||
}
|
||||
|
||||
if (isExecutingTooltip) {
|
||||
return;
|
||||
}
|
||||
|
||||
isExecutingTooltip = true;
|
||||
|
||||
tooltipTimeout = setTimeout(function () {
|
||||
const selector = '[data-toggle="tooltip"]';
|
||||
if (!$(selector).not('.alreadyTooltip').length) {
|
||||
isExecuting = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -2287,9 +2295,12 @@ async function setToolTips() {
|
|||
setToolTips();
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
isExecutingTooltip = false;
|
||||
}, 2000);
|
||||
}
|
||||
|
||||
|
||||
function avideoSocketIsActive() {
|
||||
if (typeof isSocketActive == 'function') {
|
||||
return isSocketActive();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue