User:DannyS712/EFFPRH/sandbox.js: Difference between revisions

Content deleted Content added
spread edit params, so that token is not leaked to console
link to section in edit summary
Line 178:
this.haveSubmitted = true;
EFFPRH.respondToReport(
this.reporterName,
this.sectionNum,
this.selectedResponse,
Line 222 ⟶ 223:
* for the edit succeeding or not.
*/
EFFPRH.respondToReport = function (
reporterName,
sectionNum,
responseOption,
extraComment
) {
return new Promise( function ( resolve, reject ) {
let responseText = '\n: {{EFFP|' + responseOption + '}}';
Line 234 ⟶ 240:
title: mw.config.get( 'wgPageName' ),
section: sectionNum,
summary: '/* ' + reporterName + ' */ ' + EFFPRH.editSummary,
notminor: true,
baserevid: mw.config.get( 'wgCurRevisionId' ),