Fix save dialog error message transition

Element must be hidden for $.slideDown to work.

Also speed up animation to OOUI default 250ms.

Change-Id: I0616c156f1893688abd80f9e47c1a88e9237d085
This commit is contained in:
Ed Sanders 2018-12-12 12:20:24 +00:00
parent 3949712ec0
commit a9aa4d6c15

View file

@ -468,9 +468,10 @@ ve.ui.MWSaveDialog.prototype.showMessage = function ( name, message, options ) {
} else {
$message.append( message );
}
this.$saveMessages.append( $message );
this.$saveMessages.append( $message.css( 'display', 'none' ) );
$message.slideDown( {
duration: 250,
progress: this.updateSize.bind( this )
} );