| 1 |
( function () { |
| 2 |
'use strict'; |
| 3 |
|
| 4 |
const contLangMessages = require( './contLangMessages.json' ); |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
mw.tempUserCreated = {}; |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
mw.tempUserCreated.showPopup = function () { |
| 17 |
const title = mw.message( 'postedit-temp-created-label' ).text(); |
| 18 |
const $content = mw.message( |
| 19 |
'postedit-temp-created', |
| 20 |
mw.util.getUrl( 'Special:CreateAccount' ), |
| 21 |
contLangMessages[ 'tempuser-helppage' ] |
| 22 |
).parseDom(); |
| 23 |
mw.notify( $content, { |
| 24 |
title: title, |
| 25 |
classes: [ 'postedit-tempuserpopup' ], |
| 26 |
autoHide: false |
| 27 |
} ); |
| 28 |
}; |
| 29 |
|
| 30 |
}() ); |