mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Merge "Don't use jQuery show() or toggle()"
This commit is contained in:
commit
ea9d65653e
|
@ -139,7 +139,8 @@ ve.ce.MWBlockImageNode.prototype.updateCaption = function () {
|
|||
}
|
||||
}
|
||||
if ( this.$caption ) {
|
||||
this.$caption.toggle( this.captionVisible );
|
||||
// Don't use show() as it sets display to block, overriding the stylesheet.
|
||||
this.$caption.css( 'display', this.captionVisible ? '' : 'none' );
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue