Merge branch 'staging' of github.com:xwiki-labs/cryptpad into staging
This commit is contained in:
commit
cb6c7cc4b5
@ -799,6 +799,11 @@ define([
|
|||||||
// forever, this is a solution which just searches for tooltips which have no corrisponding element and removes
|
// forever, this is a solution which just searches for tooltips which have no corrisponding element and removes
|
||||||
// them.
|
// them.
|
||||||
$('.tippy-popper').each(function (i, el) {
|
$('.tippy-popper').each(function (i, el) {
|
||||||
|
if (el._tippy && el._tippy.reference && document.body.contains(el._tippy.reference)) {
|
||||||
|
el._tippy.destroy();
|
||||||
|
el.remove();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if ($('[aria-describedby=' + el.getAttribute('id') + ']').length === 0) {
|
if ($('[aria-describedby=' + el.getAttribute('id') + ']').length === 0) {
|
||||||
el.remove();
|
el.remove();
|
||||||
}
|
}
|
||||||
@ -849,6 +854,9 @@ define([
|
|||||||
mutations.forEach(function(mutation) {
|
mutations.forEach(function(mutation) {
|
||||||
if (mutation.type === "childList") {
|
if (mutation.type === "childList") {
|
||||||
for (var i = 0; i < mutation.addedNodes.length; i++) {
|
for (var i = 0; i < mutation.addedNodes.length; i++) {
|
||||||
|
if ($(mutation.addedNodes[i]).attr('title')) {
|
||||||
|
addTippy(0, mutation.addedNodes[i]);
|
||||||
|
}
|
||||||
$(mutation.addedNodes[i]).find('[title]').each(addTippy);
|
$(mutation.addedNodes[i]).find('[title]').each(addTippy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user