mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-11-15 03:33:45 +00:00
Stop using ancient <center> tag in tooltips
Change-Id: I26aef8df98a7950c93a5de2c0d426cb5db4afde4
This commit is contained in:
parent
4a92947349
commit
10da0333b7
|
@ -32,7 +32,8 @@
|
|||
.tipsy( {
|
||||
gravity: 's',
|
||||
html: true,
|
||||
fade: true
|
||||
fade: true,
|
||||
className: 'revision-tooltip'
|
||||
} ) )
|
||||
.append( $( '<div class="stopper"/>' )
|
||||
.css( {
|
||||
|
@ -45,14 +46,14 @@
|
|||
},
|
||||
|
||||
makeTooltip: function ( rev ) {
|
||||
var $tooltip = $( '<center/>' ) // TODO: center is deprecated since 1995
|
||||
var $tooltip = $( '<div/>' )
|
||||
.append( '<p><b>' + rev.getFormattedDate() + '</b></p>' )
|
||||
.append( $( '<p/>' ).text( mw.html.escape( rev.getUser() ) ) )
|
||||
.append( rev.getComment() ? $( '<p/>' ).append( '<i/>' ).text( mw.html.escape( rev.getComment() ) ) : '' )
|
||||
.append( $( '<p/>' ).html( rev.getSize() + ' bytes' ) )
|
||||
.append( rev.isMinor() ? $( '<p/>' ).html( mw.message( 'minoredit' ).text() ) : '' );
|
||||
|
||||
return $( '<div/>' ).append( $tooltip ).html();
|
||||
return $tooltip.html();
|
||||
}
|
||||
} );
|
||||
|
||||
|
|
|
@ -17,6 +17,10 @@
|
|||
transition: all ease 0.2s;
|
||||
}
|
||||
|
||||
.revision-tooltip {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.revisions {
|
||||
height: 150px;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue