mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
update
This commit is contained in:
parent
8819a287fa
commit
7ddce01f98
1 changed files with 230 additions and 225 deletions
|
@ -2258,22 +2258,27 @@ function getCroppie(uploadCropObject, callback, width, height) {
|
||||||
//console.log('getCroppie 3', ret);
|
//console.log('getCroppie 3', ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let tooltipTimeout = null;
|
||||||
|
|
||||||
async function setToolTips() {
|
async function setToolTips() {
|
||||||
var selector = '[data-toggle="tooltip"]';
|
if (tooltipTimeout) {
|
||||||
|
clearTimeout(tooltipTimeout);
|
||||||
|
tooltipTimeout = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
tooltipTimeout = setTimeout(function () {
|
||||||
|
const selector = '[data-toggle="tooltip"]';
|
||||||
if (!$(selector).not('.alreadyTooltip').length) {
|
if (!$(selector).not('.alreadyTooltip').length) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$(selector).not('.alreadyTooltip').tooltip({ container: 'body', html: true });
|
$(selector).not('.alreadyTooltip').tooltip({ container: 'body', html: true });
|
||||||
$(selector).not('.alreadyTooltip').on('click', function () {
|
$(selector).not('.alreadyTooltip').on('click', function () {
|
||||||
var t = this;
|
const t = this;
|
||||||
setTimeout(function () {
|
|
||||||
try {
|
try {
|
||||||
$(t).tooltip('hide');
|
$(t).tooltip('hide');
|
||||||
} catch (e) {
|
} catch (e) { }
|
||||||
|
|
||||||
}
|
|
||||||
}, 2000);
|
|
||||||
});
|
});
|
||||||
$(selector).addClass('alreadyTooltip');
|
$(selector).addClass('alreadyTooltip');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -2282,7 +2287,7 @@ async function setToolTips() {
|
||||||
setToolTips();
|
setToolTips();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
|
}, 2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
function avideoSocketIsActive() {
|
function avideoSocketIsActive() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue