Debian Codegraph @

resources/src/mediawiki.tempUserCreated/mediawiki.tempUserCreated.js

raw symbols SCIP
1 ( function () {
2 'use strict';
3
4 const contLangMessages = require( './contLangMessages.json' );
5
6 /**
7 * Respond to the creation of a temporary user.
8 *
9 * @namespace mw.tempUserCreated
10 */
11 mw.tempUserCreated = {};
12
13 /**
14 * Show popup after creation of a temporary user.
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 }() );