Index: trunk/phase3/resources/mediawiki.util/mediawiki.util.test.js |
— | — | @@ -1,6 +1,9 @@ |
2 | | -/* |
3 | | - * mediaWiki Debug Test Suit. |
| 2 | +/** |
| 3 | + * mediaWiki.util Test Suit |
| 4 | + * |
4 | 5 | * Available on "/Special:BlankPage?action=mwutiltest&debug=true") |
| 6 | + * |
| 7 | + * @author Krinkle <krinklemail@gmail.com> |
5 | 8 | */ |
6 | 9 | |
7 | 10 | (function ($, mw) { |
Index: trunk/phase3/resources/mediawiki.util/mediawiki.util.js |
— | — | @@ -68,7 +68,7 @@ |
69 | 69 | * |
70 | 70 | * @param String str string to be encoded |
71 | 71 | */ |
72 | | - 'wikiUrlencode' : function( str ) { |
| 72 | + 'wfUrlencode' : function( str ) { |
73 | 73 | return this.rawurlencode(str).replace(/%20/g, '_').replace(/%3A/g, ':').replace(/%2F/g, '/'); |
74 | 74 | }, |
75 | 75 | |
— | — | @@ -77,8 +77,8 @@ |
78 | 78 | * |
79 | 79 | * @param String str pagename to link to |
80 | 80 | */ |
81 | | - 'getWikilink' : function( str ) { |
82 | | - return wgServer + wgArticlePath.replace('$1', this.wikiUrlencode(str)); |
| 81 | + 'wfGetlink' : function( str ) { |
| 82 | + return wgServer + wgArticlePath.replace('$1', this.wfUrlencode(str)); |
83 | 83 | }, |
84 | 84 | |
85 | 85 | /** |
Index: trunk/phase3/resources/Resources.php |
— | — | @@ -381,7 +381,7 @@ |
382 | 382 | ) ), |
383 | 383 | 'mediawiki.util' => new ResourceLoaderFileModule( array( |
384 | 384 | 'scripts' => 'resources/mediawiki.util/mediawiki.util.js', |
385 | | - 'dependencies' => 'jquery.checkboxShiftClick', |
| 385 | + 'dependencies' => array( 'jquery.checkboxShiftClick', 'jquery.client' ), |
386 | 386 | 'debugScripts' => 'resources/mediawiki.util/mediawiki.util.test.js', |
387 | 387 | ) ), |
388 | 388 | |