mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-19 01:01:00 +00:00
bc81b04ecd
Modules loaded with packageFiles are always executed in module scope (with a closure), even in debug mode. The behaviour of non-packageFiles debug mode is the only reason files have closures. https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript#Closure Change-Id: I14ac680eb67d892618bbc13be9298ec9b8e0e2e9
16 lines
290 B
JavaScript
16 lines
290 B
JavaScript
/**
|
|
* Creates a "read more" button with given text.
|
|
*
|
|
* @internal
|
|
* @ignore
|
|
* @param {string} msg
|
|
* @return {jQuery}
|
|
*/
|
|
function newPageIssueLearnMoreLink( msg ) {
|
|
return $( '<span>' )
|
|
.addClass( 'ambox-learn-more' )
|
|
.text( msg );
|
|
}
|
|
|
|
module.exports = newPageIssueLearnMoreLink;
|