diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-01-18 16:46:04 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-01-18 16:46:04 +0100 |
commit | 63601400e476c6cf43d985f3e7b9864681695ed4 (patch) | |
tree | f7846203a952e38aaf66989d0a4702779f549962 /resources/mediawiki/mediawiki.notify.js | |
parent | 8ff01378c9e0207f9169b81966a51def645b6a51 (diff) |
Update to MediaWiki 1.20.2
this update includes:
* adjusted Arch Linux skin
* updated FluxBBAuthPlugin
* patch for https://bugzilla.wikimedia.org/show_bug.cgi?id=44024
Diffstat (limited to 'resources/mediawiki/mediawiki.notify.js')
-rw-r--r-- | resources/mediawiki/mediawiki.notify.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/resources/mediawiki/mediawiki.notify.js b/resources/mediawiki/mediawiki.notify.js new file mode 100644 index 00000000..3bf2a896 --- /dev/null +++ b/resources/mediawiki/mediawiki.notify.js @@ -0,0 +1,20 @@ +/** + * Implements mediaWiki.notify function + */ +( function ( mw ) { + 'use strict'; + + /** + * @see mw.notification.notify + */ + mw.notify = function ( message, options ) { + // Don't bother loading the whole notification system if we never use it. + mw.loader.using( 'mediawiki.notification', function () { + // Don't bother calling mw.loader.using a second time after we've already loaded mw.notification. + mw.notify = mw.notification.notify; + // Call notify with the notification the user requested of us. + mw.notify( message, options ); + } ); + }; + +}( mediaWiki ) );
\ No newline at end of file |