User:Viewer2/common.js

// The following unlikely looking code looks for 'page quality' // (radio) buttons on the current page and, if found, registers // a callback (/closure?) for selection of each one found which // simply populates the change summary field with a comment, // containing the title of the last radio button chosen. // // This effectively reconstructs the behaviour of the old // javascript ProofReadPage extension prior to the deployment // of wmf version 1.23wmf5 (e602d2d).

//Fixed in 1.23wmf6 (cc018cb). See // [//en.wikisource.org/w/index.php?title=Wikisource:Scriptorium&diff=4689290&oldid=4688163]

//var SummaryNode = document.getElementById('wpSummary');

//var Inputs = document.getElementsByTagName('input');

//for (var N = Inputs.length - 1; N >= 0; N--) { // if (Inputs[N].getAttribute('name')=='wpQuality') { // 	Inputs[N].onclick = (function(summary) { //        return function { //          SummaryNode.value = summary; //          return true; //        }; //    })( "/* "+Inputs[N].title+" */" ); // } //}