Content deleted Content added
SilverLocust (talk | contribs) clearing for now Tags: Blanking Manual revert |
SilverLocust (talk | contribs) np |
||
Line 1:
$(".mw-newpages-pagename").on('click', function(e) {
e.preventDefault();
var title = this.innerText,
message = 'Mark ' + title + ' as reviewed?',
params = {
action: 'query',
format: 'json',
titles: title,
prop: 'info',
},
api = new mw.Api();
api.get( params ).done( function ( data ) {
var pages = data.query.pages,
p;
for ( p in pages ) {
var pid = p;
}
} );
if(confirm(message)) {
api.postWithToken({
action: 'pagetriageaction',
reviewed: 1,
skipnotif: 1,
pageid: pid
});
}
});
|