Merge "Dev: Simplify red link drawer"

This commit is contained in:
jenkins-bot 2019-07-30 20:06:37 +00:00 committed by Gerrit Code Review
commit 13475413e7

View file

@ -287,16 +287,12 @@
label: mw.msg( 'mobile-frontend-editor-redlink-create' ), label: mw.msg( 'mobile-frontend-editor-redlink-create' ),
href: $( this ).attr( 'href' ) href: $( this ).attr( 'href' )
} ).options, } ).options,
closeAnchor: new Anchor( { actionAnchor: new Anchor( {
progressive: true, progressive: true,
label: mw.msg( 'mobile-frontend-editor-redlink-leave' ), label: mw.msg( 'mobile-frontend-editor-redlink-leave' ),
additionalClassNames: 'hide' additionalClassNames: 'cancel'
} ).options, } ).options,
events: { content: mw.msg( 'mobile-frontend-editor-redlink-explain' )
'click .hide': 'hide' // Call CtaDrawer.hide() on closeAnchor click.
},
content: mw.msg( 'mobile-frontend-editor-redlink-explain' ),
actionAnchor: false
}, },
drawer = new CtaDrawer( drawerOptions ); drawer = new CtaDrawer( drawerOptions );