MediaWiki:Common.js: Difference between revisions
Content deleted Content added
put helper function here where (fingers crossed) the ampersand won't get broken |
m formatting |
||
Line 1:
/**
**/
function parseParams( url ) {
// Helper function to get querystring parameters as a JS object
// Located here as MediaWiki messes up the ampersand when included inline using rawHTML
var ret={};
if ( url.indexOf( '?' ) === -1 ) {
return ret; }
var
for
var z = t[ i ].
ret[ z[ 0 ] ] = z[ 1 ];
}
return ret;
|