forked from 00dani/lemoncurry
Fix broken Tippy tooltips caused by changes to Tippy's API in version 3
This commit is contained in:
parent
012aed42b1
commit
b318ed5b06
2 changed files with 12 additions and 2 deletions
|
@ -97,6 +97,11 @@
|
|||
|
||||
{% block foot %}
|
||||
<script type="text/javascript">
|
||||
tippy('.profiles [title]', {arrow: true});
|
||||
tippy('.profiles [title]', {
|
||||
arrow: true,
|
||||
content: function(element) {
|
||||
return element.getAttribute('title');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
|
|
@ -71,6 +71,11 @@
|
|||
|
||||
{% block foot %}
|
||||
<script type="text/javascript">
|
||||
tippy('[data-tippy-theme]', {arrow: true});
|
||||
tippy('[data-tippy-theme]', {
|
||||
arrow: true,
|
||||
content: function(element) {
|
||||
return document.querySelector(element.getAttribute('data-tippy-html')).innerHTML;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue