1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mediawiki_ynh.git synced 2024-09-03 19:46:05 +02:00
mediawiki_ynh/sources/mediawiki/extensions/Cite/modules/ext.cite.popups.js

13 lines
351 B
JavaScript

( function ( mw, $ ) {
'use strict';
mw.hook( 'wikipage.content' ).add( function ( $content ) {
$content.find( '.biblio-cite-link,sup.reference a' ).tooltip( {
bodyHandler: function () {
return $content.find( '#' + this.hash.substr( 1 ) + ' > .reference-text' )
.html();
},
showURL: false
} );
} );
} )( mediaWiki, jQuery );