Localisation updates from http://translatewiki.net.
[mediawiki.git] / resources / mediawiki / mediawiki.notify.js
blob83d95b61b8a79eeda7f411be07d9e8e73f16c8fb
1 /**
2 * @class mw.plugin.notify
3 */
4 ( function ( mw ) {
5 'use strict';
7 /**
8 * @see mw.notification#notify
9 * @param message
10 * @param options
12 mw.notify = function ( message, options ) {
13 // Don't bother loading the whole notification system if we never use it.
14 mw.loader.using( 'mediawiki.notification', function () {
15 // Don't bother calling mw.loader.using a second time after we've already loaded mw.notification.
16 mw.notify = mw.notification.notify;
17 // Call notify with the notification the user requested of us.
18 mw.notify( message, options );
19 } );
22 /**
23 * @class mw
24 * @mixins mw.plugin.notify
27 }( mediaWiki ) );