MediaWiki:Common.js: Unterschied zwischen den Versionen
Aus Altes Köln
Simon (Diskussion | Beiträge) (Bootstrap-Styling für Tooltip) |
Simon (Diskussion | Beiträge) (+Tooltip-Titel) |
||
Zeile 6: | Zeile 6: | ||
$(function() { | $(function() { | ||
$('.ak-text-with-tooltip').each(function() { | $('.ak-text-with-tooltip').each(function() { | ||
− | $(this).qtip({ | + | var $this = $(this); |
+ | $this.qtip({ | ||
content: { | content: { | ||
− | text: $ | + | text: $this.next('.ak-tooltip-text'), |
+ | title: $this.data('title') | ||
}, | }, | ||
style: { | style: { |
Version vom 18. August 2019, 22:33 Uhr
/* Das folgende JavaScript wird für alle Benutzer geladen. */ /* Tooltips */ $(function() { $('.ak-text-with-tooltip').each(function() { var $this = $(this); $this.qtip({ content: { text: $this.next('.ak-tooltip-text'), title: $this.data('title') }, style: { def: false, classes: 'qtip-bootstrap' }, position: { my: 'bottom center', at: 'top center' }, show: { event: 'click focus mouseenter', solo: true } }); }); });