Fix broken Tippy tooltips caused by changes to Tippy's API in version 3

This commit is contained in:
Danielle McLean 2019-01-17 12:29:16 +11:00
rodič 012aed42b1
revize b318ed5b06
Podepsáno: 00dani
ID GPG klíče: 8EB789DDF3ABD240
2 změnil soubory, kde provedl 12 přidání a 2 odebrání

Zobrazit soubor

@ -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 %}

Zobrazit soubor

@ -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 %}