Fix display issues with "view terms"

Hiding the element before it is added to the document causes
a wrong display type in Firefox; changing the order of commands
fixes that.

Bug: 61936
Change-Id: I808131da25f2f70c14747238216e8973af44d029
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/118
This commit is contained in:
Gergő Tisza 2014-02-26 01:20:34 +00:00
parent 18a850869d
commit 77deada982

View file

@ -176,8 +176,8 @@
this.$permissionLink = $( '<span>' )
.addClass( 'mw-mlb-permission-link mw-mlb-label' )
.text( mw.message( 'multimediaviewer-permission-link' ).text() )
.hide()
.appendTo( this.$titlePara )
.hide()
.on( 'click', function() {
panel.permission.grow();
panel.scrollIntoView( panel.permission.$box, 500 );