mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Remove skinning modules when showing preview
Bug: T185284 Change-Id: Ifec8809cd75cb76c79936a69351be0c7779de39e
This commit is contained in:
parent
632d83aa8d
commit
2fd09aaba3
|
@ -214,9 +214,9 @@ ve.ui.MWSaveDialog.prototype.showPreview = function ( docOrMsg, baseDoc ) {
|
|||
modules = modules.concat( mw.libs.ve.expandModuleNames( uri.query.modules ) );
|
||||
}
|
||||
} );
|
||||
// Remove skin-specific modules (T187075)
|
||||
// Remove skin-specific modules (T187075 / T185284)
|
||||
modules = modules.filter( function ( module ) {
|
||||
return module.indexOf( 'skins.' ) !== 0;
|
||||
return ( module.match( /^(skins|mediawiki\.skinning)\./ ) === null );
|
||||
} );
|
||||
mw.loader.using( modules );
|
||||
body = docOrMsg.body;
|
||||
|
|
Loading…
Reference in a new issue