) ),
'mediawiki.util' => new ResourceLoaderFileModule( array(
'scripts' => 'resources/mediawiki.util/mediawiki.util.js',
- 'dependencies' => 'jquery.checkboxShiftClick',
+ 'dependencies' => array( 'jquery.checkboxShiftClick', 'jquery.client' ),
'debugScripts' => 'resources/mediawiki.util/mediawiki.util.test.js',
) ),
*
* @param String str string to be encoded
*/
- 'wikiUrlencode' : function( str ) {
+ 'wfUrlencode' : function( str ) {
return this.rawurlencode(str).replace(/%20/g, '_').replace(/%3A/g, ':').replace(/%2F/g, '/');
},
*
* @param String str pagename to link to
*/
- 'getWikilink' : function( str ) {
- return wgServer + wgArticlePath.replace('$1', this.wikiUrlencode(str));
+ 'wfGetlink' : function( str ) {
+ return wgServer + wgArticlePath.replace('$1', this.wfUrlencode(str));
},
/**
-/*
- * mediaWiki Debug Test Suit.
+/**
+ * mediaWiki.util Test Suit
+ *
* Available on "/Special:BlankPage?action=mwutiltest&debug=true")
+ *
+ * @author Krinkle <krinklemail@gmail.com>
*/
(function ($, mw) {