mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-09-29 13:17:35 +00:00
Fix a few issues in unattach
Check for tipsy-ness, and for the existence of the opt out button. The latter doesn't affect prod, but the former might. Change-Id: Ia5ae8b160626d27750cb3e4938c27a461b9f0c64
This commit is contained in:
parent
a57a606ee5
commit
3e2759cd7b
|
@ -61,7 +61,12 @@
|
|||
|
||||
MPP.unattach = function() {
|
||||
this.$title.tipsy( 'hide' );
|
||||
this.$mmvOptOutLink.tipsy( 'hide' );
|
||||
|
||||
// This is created conditionally if MMV is in beta
|
||||
if ( this.$mmvOptOutLink ) {
|
||||
this.$mmvOptOutLink.tipsy( 'hide' );
|
||||
}
|
||||
|
||||
this.$titleAndCredit.find( '.mw-mmv-author' ).tipsy( 'hide' );
|
||||
this.$titleAndCredit.find( '.mw-mmv-source' ).tipsy( 'hide' );
|
||||
|
||||
|
|
|
@ -431,7 +431,10 @@
|
|||
this.clearTimer( 'feedbackTooltip.show' );
|
||||
|
||||
$.each( this.buttons, function ( name, $button ) {
|
||||
$button.tipsy( 'hide' );
|
||||
// Tipsy's not enabled on every button
|
||||
if ( $button.data( 'tipsy' ) ) {
|
||||
$button.tipsy( 'hide' );
|
||||
}
|
||||
} );
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue