Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Jul 2, 2023
1 parent 7ddce01 commit a29f6d4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions view/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2259,16 +2259,24 @@ function getCroppie(uploadCropObject, callback, width, height) {
}

let tooltipTimeout = null;
let isExecutingTooltip = false;

async function setToolTips() {
if (tooltipTimeout) {
clearTimeout(tooltipTimeout);
tooltipTimeout = null;
}

if (isExecutingTooltip) {
return;
}

isExecutingTooltip = true;

tooltipTimeout = setTimeout(function () {
const selector = '[data-toggle="tooltip"]';
if (!$(selector).not('.alreadyTooltip').length) {
isExecuting = false;
return false;
}

Expand All @@ -2287,9 +2295,12 @@ async function setToolTips() {
setToolTips();
}, 1000);
}

isExecutingTooltip = false;
}, 2000);
}


function avideoSocketIsActive() {
if (typeof isSocketActive == 'function') {
return isSocketActive();
Expand Down

0 comments on commit a29f6d4

Please sign in to comment.