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

Content deleted Content added
m reporter name
links that log to console
Line 52:
*/
EFFPRH.addReportHandler = function ( $editSectionLinks, reporterName, sectionNum ) {
console.log( reporterName, sectionNum );
const $handlerLink = $( '<a>' )
.text( 'Review report' );
$handlerLink.click(
function () {
console.log( 'Should launch for: ', reporterName, sectionNum );
}
);
// Add before the closing ] of the links
$editSectionLinks.children().last().before(
' | ',
$handlerLink
);
};