Merge "jquery.tablesorter: Silence an expected "sort-rowspan-error" warning"
[mediawiki.git] / resources / src / mediawiki.tempUserCreated / mediawiki.tempUserCreated.js
blob917a5fa26d2a726f035c54d71dc8a5405239f630
1 ( function () {
2 'use strict';
4 const contLangMessages = require( './contLangMessages.json' );
6 /**
7 * Respond to the creation of a temporary user.
9 * @namespace mw.tempUserCreated
11 mw.tempUserCreated = {};
13 /**
14 * Show popup after creation of a temporary user.
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 } );
30 }() );