mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-12 00:48:46 +00:00
Merge "Dev: Simplify red link drawer"
This commit is contained in:
commit
13475413e7
|
@ -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 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue