changing mw.uti functionnames to follow convention + loading $.client as dependency...
authorKrinkle <krinkle@users.mediawiki.org>
Wed, 27 Oct 2010 20:27:04 +0000 (20:27 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Wed, 27 Oct 2010 20:27:04 +0000 (20:27 +0000)
resources/Resources.php
resources/mediawiki.util/mediawiki.util.js
resources/mediawiki.util/mediawiki.util.test.js

index cb0e1e2..941441e 100644 (file)
@@ -381,7 +381,7 @@ return array(
        ) ),
        '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',
        ) ),
        
index 504a617..26ec9ee 100644 (file)
@@ -68,7 +68,7 @@
                *
                * @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, '/');
                },
 
@@ -77,8 +77,8 @@
                *
                * @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));
                },
 
                /**
index 9db7853..07a6345 100644 (file)
@@ -1,6 +1,9 @@
-/*
- * mediaWiki Debug Test Suit.
+/**
+ * mediaWiki.util Test Suit
+ *
  * Available on "/Special:BlankPage?action=mwutiltest&debug=true")
+ * 
+ * @author Krinkle <krinklemail@gmail.com>
  */
 
 (function ($, mw) {