User:Euphoria/common.js: Difference between revisions
From Test Wiki
Content deleted Content added
tɛst |
fix |
||
| Line 57: | Line 57: | ||
action: 'query', |
action: 'query', |
||
prop: 'revisions', |
prop: 'revisions', |
||
titles: |
titles: currentPage, |
||
rvslots: 'main', |
rvslots: 'main', |
||
rvprop: 'content', |
rvprop: 'content', |
||
| Line 71: | Line 71: | ||
api.postWithToken('csrf', { |
api.postWithToken('csrf', { |
||
action: 'edit', |
action: 'edit', |
||
title: |
title: currentPage, |
||
text: discussionNewContent, |
text: discussionNewContent, |
||
summary: 'Closed as ' + actionObj.name, |
summary: 'Closed as ' + actionObj.name, |
||
| Line 92: | Line 92: | ||
if (actionObj.name === 'delete') { |
if (actionObj.name === 'delete') { |
||
// Delete target page |
// Delete target page |
||
api.postWithToken('csrf', {action: 'delete', title: targetPage, reason: '[[' + |
api.postWithToken('csrf', {action: 'delete', title: targetPage, reason: '[[' + currentPage + ']]'}) |
||
.done(() => { |
.done(() => { |
||
const talkPage = 'Talk:' + targetPage; |
const talkPage = 'Talk:' + targetPage; |
||