mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 14:23:53 +00:00
Merge "Hygiene: revise CtaDrawer.events to options"
This commit is contained in:
commit
94cab7b414
|
@ -13,6 +13,7 @@
|
|||
Icon = M.require( 'mobile.startup/Icon' ),
|
||||
Button = M.require( 'mobile.startup/Button' ),
|
||||
Anchor = M.require( 'mobile.startup/Anchor' ),
|
||||
util = M.require( 'mobile.startup/util' ),
|
||||
overlayManager = OverlayManager.getSingleton(),
|
||||
page = M.getCurrentPage(),
|
||||
api = new mw.Api(),
|
||||
|
@ -309,6 +310,9 @@
|
|||
label: mw.msg( 'mobile-frontend-editor-redlink-leave' ),
|
||||
additionalClassNames: 'hide'
|
||||
} ).options,
|
||||
events: util.extend( {}, CtaDrawer.prototype.events, {
|
||||
'click .hide': 'hide' // Call CtaDrawer.hide() on closeAnchor click.
|
||||
} ),
|
||||
content: mw.msg( 'mobile-frontend-editor-redlink-explain' ),
|
||||
actionAnchor: false
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue