Content deleted Content added
No edit summary |
No edit summary |
||
Line 110:
});
function editPage(
var api2 = new mw.Api();
api2.postWithToken("csrf", editParams(
alert( 'Page edited!' );
} ).fail( function(code, data) {
Line 120:
function queryParams(loc){ return { action: 'query', prop: 'revisions', rvprop: 'content', rvlimit: 1, titles: loc }; }
function editParams(loc, addition, action){ return { action: 'edit', title: loc, text:
|