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);
|
||||
}
|
||||
|
||||
let tooltipTimeout = null;
|
||||
|
||||
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) {
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
$(selector).not('.alreadyTooltip').tooltip({ container: 'body', html: true });
|
||||
$(selector).not('.alreadyTooltip').on('click', function () {
|
||||
var t = this;
|
||||
setTimeout(function () {
|
||||
const t = this;
|
||||
try {
|
||||
$(t).tooltip('hide');
|
||||
} catch (e) {
|
||||
|
||||
}
|
||||
}, 2000);
|
||||
} catch (e) { }
|
||||
});
|
||||
$(selector).addClass('alreadyTooltip');
|
||||
} catch (e) {
|
||||
|
@ -2282,7 +2287,7 @@ async function setToolTips() {
|
|||
setToolTips();
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
}, 2000);
|
||||
}
|
||||
|
||||
function avideoSocketIsActive() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue