mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-29 00:20:51 +00:00
14 lines
405 B
JavaScript
14 lines
405 B
JavaScript
|
( function ( M ) {
|
||
|
/**
|
||
|
* Create a link element that opens the issues overlay.
|
||
|
*
|
||
|
* @param {string} labelText The text value of the element
|
||
|
* @return {JQuery}
|
||
|
*/
|
||
|
function newPageIssueLink( labelText ) {
|
||
|
return $( '<a>' ).addClass( 'cleanup mw-mf-cleanup' ).text( labelText );
|
||
|
}
|
||
|
|
||
|
M.define( 'skins.minerva.scripts/page-issues/page/PageIssueLink', newPageIssueLink );
|
||
|
}( mw.mobileFrontend ) );
|