MediaWiki:Common.js: Unterschied zwischen den Versionen
Aus Altes Köln
Simon (Diskussion | Beiträge) (+Tooltip-Titel) |
Simon (Diskussion | Beiträge) (Tooltip schließen durch Klick) |
||
Zeile 10: | Zeile 10: | ||
content: { | content: { | ||
text: $this.next('.ak-tooltip-text'), | text: $this.next('.ak-tooltip-text'), | ||
title: $this.data('title') | title: { | ||
text: $this.data('title'), | |||
button: true | |||
} | |||
}, | }, | ||
style: { | style: { | ||
def: false, | def: false, | ||
classes: 'qtip-bootstrap' | classes: 'qtip-shadow qtip-bootstrap' | ||
}, | }, | ||
position: { | position: { | ||
Zeile 23: | Zeile 26: | ||
event: 'click focus mouseenter', | event: 'click focus mouseenter', | ||
solo: true | solo: true | ||
} | }, | ||
hide: 'unfocus' | |||
}); | }); | ||
}); | }); | ||
}); | }); |
Version vom 18. August 2019, 21:19 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: {
text: $this.data('title'),
button: true
}
},
style: {
def: false,
classes: 'qtip-shadow qtip-bootstrap'
},
position: {
my: 'bottom center',
at: 'top center'
},
show: {
event: 'click focus mouseenter',
solo: true
},
hide: 'unfocus'
});
});
});