1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00
This commit is contained in:
DanieL 2022-07-23 21:59:03 -03:00
parent 2aa644e5d3
commit e3f23f4703
2 changed files with 5 additions and 8 deletions

View file

@ -2056,15 +2056,12 @@ function getCroppie(uploadCropObject, callback, width, height) {
}
async function setToolTips() {
var selettor = 'a[data-toggle="tooltip"],div[data-toggle="tooltip"],button[data-toggle="tooltip"],span[data-toggle="tooltip"]';
if (!$(selettor).not('.alreadyTooltip').length) {
var selector = '[data-toggle="tooltip"]';
if (!$(selector).not('.alreadyTooltip').length) {
return false;
}
$(selettor).not('.alreadyTooltip').tooltip({container: 'body', html: true});
$(selettor).not('.alreadyTooltip').on('click', function () {
$(selector).not('.alreadyTooltip').tooltip({container: 'body', html: true});
$(selector).not('.alreadyTooltip').on('click', function () {
var t = this;
setTimeout(function () {
$(t).tooltip('hide');