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
parent 012aed42b1
commit b318ed5b06
Signed by: 00dani
GPG key ID: 8EB789DDF3ABD240
2 changed files with 12 additions and 2 deletions

View file

@ -97,6 +97,11 @@
{% block foot %} {% block foot %}
<script type="text/javascript"> <script type="text/javascript">
tippy('.profiles [title]', {arrow: true}); tippy('.profiles [title]', {
arrow: true,
content: function(element) {
return element.getAttribute('title');
}
});
</script> </script>
{% endblock %} {% endblock %}

View file

@ -71,6 +71,11 @@
{% block foot %} {% block foot %}
<script type="text/javascript"> <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> </script>
{% endblock %} {% endblock %}