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

このコミットが含まれているのは:
Danielle McLean 2019-01-17 12:29:16 +11:00
コミット b318ed5b06
署名者: 00dani
GPGキーID: 8EB789DDF3ABD240
2個のファイルの変更12行の追加2行の削除

ファイルの表示

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