mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-24 08:14:33 +00:00
Use mw. instead of mediaWiki. in code
Change-Id: Ib7905bbbb8954cf8e268acac45e00ceba959b00b
This commit is contained in:
parent
a4131a7a9b
commit
de74cc81f5
|
@ -146,7 +146,7 @@ $.wikiEditor = {
|
|||
},
|
||||
|
||||
/**
|
||||
* Provides a way to extract messages from objects. Wraps a mediaWiki.message( ... ).plain() call.
|
||||
* Provides a way to extract messages from objects. Wraps a mw.message( ... ).plain() call.
|
||||
*
|
||||
* @param {Object} object Object to extract messages from
|
||||
* @param {string} property String of name of property which contains the message. This should be the base name of the
|
||||
|
@ -532,7 +532,7 @@ $.fn.wikiEditor = function () {
|
|||
/* Disabling our loading div for now
|
||||
var $loader = $( '<div>' )
|
||||
.addClass( 'wikiEditor-ui-loading' )
|
||||
.append( $( '<span>' + mediaWiki.msg( 'wikieditor-loading' ) + '</span>' )
|
||||
.append( $( '<span>' + mw.msg( 'wikieditor-loading' ) + '</span>' )
|
||||
.css( 'marginTop', context.$textarea.height() / 2 ) );
|
||||
*/
|
||||
/* Preserving cursor and focus state, which will get lost due to wrapAll */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Publish module for wikiEditor */
|
||||
/*jshint onevar:false */
|
||||
( function ( $ ) {
|
||||
( function ( $, mw ) {
|
||||
|
||||
$.wikiEditor.modules.publish = {
|
||||
|
||||
|
@ -69,7 +69,7 @@ $.wikiEditor.modules.publish = {
|
|||
var i;
|
||||
|
||||
$( this ).find( '[rel]' ).each( function () {
|
||||
$( this ).text( mediaWiki.msg( $( this ).attr( 'rel' ) ) );
|
||||
$( this ).text( mw.msg( $( this ).attr( 'rel' ) ) );
|
||||
} );
|
||||
|
||||
/* REALLY DIRTY HACK! */
|
||||
|
@ -161,4 +161,4 @@ $.wikiEditor.modules.publish = {
|
|||
|
||||
};
|
||||
|
||||
}( jQuery ) );
|
||||
}( jQuery, mediaWiki ) );
|
||||
|
|
Loading…
Reference in a new issue