mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 14:23:53 +00:00
skins.minerva.editor: Remove remaining uses of 'skins.minerva.scripts'
We want to remove dependencies on Minerva code from this file to move it to MobileFrontend. * Use 'mobile.init/skin' instead of 'skins.minerva.scripts/skin'. * Use 'mobile.startup/OverlayManager' and #getSingleton instead of 'skins.minerva.scripts/overlayManager'. Both of them are just aliases for modules defined in MobileFrontend. Bug: T198765 Change-Id: Id017dd4b6d1fe31a735613f991721c4dddafbde9
This commit is contained in:
parent
7bbba14ee1
commit
d27a9481bc
|
@ -2,9 +2,10 @@
|
|||
|
||||
var
|
||||
router = require( 'mediawiki.router' ),
|
||||
overlayManager = M.require( 'skins.minerva.scripts/overlayManager' ),
|
||||
OverlayManager = M.require( 'mobile.startup/OverlayManager' ),
|
||||
overlayManager = OverlayManager.getSingleton(),
|
||||
loader = M.require( 'mobile.startup/rlModuleLoader' ),
|
||||
skin = M.require( 'skins.minerva.scripts/skin' ),
|
||||
skin = M.require( 'mobile.init/skin' ),
|
||||
currentPage = M.getCurrentPage(),
|
||||
// #ca-edit, .mw-editsection are standard MediaWiki elements
|
||||
// .edit-link comes from MobileFrontend user page creation CTA
|
||||
|
|
Loading…
Reference in a new issue