mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 14:33:59 +00:00
Merge "Always set mode when activating the target"
This commit is contained in:
commit
019aee30d4
|
@ -286,6 +286,8 @@
|
|||
// Detach the loading bar for activation so it doesn't get moved around
|
||||
// and altered, re-attach immediately after
|
||||
init.$loading.detach();
|
||||
// If target was already loaded, ensure the mode is correct
|
||||
target.setMode( mode );
|
||||
activatePromise = target.activate( dataPromise );
|
||||
$( '#content' ).prepend( init.$loading );
|
||||
return activatePromise;
|
||||
|
|
Loading…
Reference in a new issue