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
부모 012aed42b1
커밋 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 %}