Merge "Don't use jQuery show() or toggle()"

This commit is contained in:
jenkins-bot 2014-06-16 19:11:03 +00:00 committed by Gerrit Code Review
commit ea9d65653e

View file

@ -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' );
}
};