Widget:EditSandbox: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 8: | Line 8: | ||
function readPage(pageTitle){ | function readPage(pageTitle){ | ||
var api = new mw.Api(); | var api = new mw.Api(); | ||
var result; | |||
api.get( { | api.get( { | ||
action: 'query', | action: 'query', | ||
Line 20: | Line 21: | ||
$title = $xml.find( "text" ); | $title = $xml.find( "text" ); | ||
&result = $title.text(); | |||
}}); | }}); | ||
return result; | |||
} | } | ||