Merge "Hygiene: revise CtaDrawer.events to options"

This commit is contained in:
jenkins-bot 2018-12-20 21:54:35 +00:00 committed by Gerrit Code Review
commit 94cab7b414

View file

@ -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
},