mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
Merge "MobileArticleTarget: Update loading interface for new design"
This commit is contained in:
commit
ed6d540289
|
@ -473,8 +473,6 @@ ve.init.mw.MobileArticleTarget.prototype.load = function () {
|
|||
* @inheritdoc
|
||||
*/
|
||||
ve.init.mw.MobileArticleTarget.prototype.setupToolbar = function ( surface ) {
|
||||
var $header = this.overlay.$el.find( '.overlay-header-container' );
|
||||
|
||||
if ( !this.pageToolbar ) {
|
||||
this.pageToolbar = new ve.ui.TargetToolbar( this, { actions: true } );
|
||||
}
|
||||
|
@ -538,18 +536,6 @@ ve.init.mw.MobileArticleTarget.prototype.setupToolbar = function ( surface ) {
|
|||
// Append the context to the toolbar
|
||||
this.toolbar.$bar.append( surface.getContext().$element );
|
||||
|
||||
// Animate the toolbar sliding into place.
|
||||
// Do not animate if we're replacing the wikitext editor toolbar.
|
||||
if ( !this.overlay.options.switched ) {
|
||||
$header.addClass( 'toolbar-hidden' );
|
||||
setTimeout( function () {
|
||||
$header.addClass( 'toolbar-shown' );
|
||||
setTimeout( function () {
|
||||
$header.addClass( 'toolbar-shown-done' );
|
||||
}, 250 );
|
||||
} );
|
||||
}
|
||||
|
||||
// Don't wait for the first surface focus/blur event to hide one of the toolbars
|
||||
this.onSurfaceBlur();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue