Adding fallback for collapsible messages
This commit is contained in:
parent
ed5d9a08b0
commit
61c52fcdd5
1 changed files with 2 additions and 2 deletions
|
|
@ -76,10 +76,10 @@ $.fn.makeCollapsible = function() {
|
|||
|
||||
// Use custom text or default ?
|
||||
if( !collapsetext || collapsetext == '' ){
|
||||
collapsetext = mw.msg( 'collapsible-collapse' );
|
||||
collapsetext = mw.msg( 'collapsible-collapse', 'Collapse' );
|
||||
}
|
||||
if ( !expandtext || expandtext == '' ){
|
||||
expandtext = mw.msg( 'collapsible-expand' );
|
||||
expandtext = mw.msg( 'collapsible-expand', 'Expand' );
|
||||
}
|
||||
|
||||
// Create toggle link with a space around the brackets ( [text] )
|
||||
|
|
|
|||
Loading…
Reference in a new issue