r34549 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r34548‎ | r34549 | r34550 >
Date:06:01, 10 May 2008
Author:thomasv
Status:old
Tags:
Comment:
fill edit summary of empty pages
Modified paths:
  • /trunk/extensions/ProofreadPage/proofread.js (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/proofread.js
@@ -102,6 +102,7 @@
103103 pageHeader = '{{PageQuality|1|}}<div class="pagetext">';
104104 pageBody = text;
105105 pageFooter = '<references/></div>';
 106+ document.editform.elements["wpSummary"].value="/* "+proofreadPageMessageQuality1+" */";
106107 }
107108 }
108109
@@ -497,10 +498,10 @@
498499
499500 var text="";
500501 switch(value){
501 - case "1": text = proofreadPageMessageQuality1; break;
502 - case "2": text = proofreadPageMessageQuality2; break;
503 - case "3": text = proofreadPageMessageQuality3; break;
504 - case "4": text = proofreadPageMessageQuality4; break;
 502+ case 1: text = proofreadPageMessageQuality1; break;
 503+ case 2: text = proofreadPageMessageQuality2; break;
 504+ case 3: text = proofreadPageMessageQuality3; break;
 505+ case 4: text = proofreadPageMessageQuality4; break;
505506 }
506507
507508 form.elements["wpSummary"].value="/* "+text+" */";
@@ -537,10 +538,11 @@
538539 }
539540 var f = document.createElement("span");
540541 f.innerHTML =
541 -' <span class="quality2"> <input type="radio" name="quality" value="2" onclick="proofreadpage_add_quality(this.form,this.value)"> </span>'
542 -+'<span class="quality1"> <input type="radio" name="quality" value="1" onclick="proofreadpage_add_quality(this.form,this.value)"> </span>'
543 -+'<span class="quality3"> <input type="radio" name="quality" value="3" onclick="proofreadpage_add_quality(this.form,this.value)"> </span>';
544 - if(show4) f.innerHTML = f.innerHTML + '<span class="quality4"> <input type="radio" name="quality" value="4" onclick="proofreadpage_add_quality(this.form,this.value)"> </span>';
 542+' <span class="quality2"> <input type="radio" name="quality" onclick="proofreadpage_add_quality(this.form,2)"> </span>'
 543++'<span class="quality1"> <input type="radio" name="quality" onclick="proofreadpage_add_quality(this.form,1)"> </span>'
 544++'<span class="quality3"> <input type="radio" name="quality" onclick="proofreadpage_add_quality(this.form,3)"> </span>';
 545+ if(show4) f.innerHTML = f.innerHTML
 546++ '<span class="quality4"> <input type="radio" name="quality" onclick="proofreadpage_add_quality(this.form,4)"> </span>';
545547 f.innerHTML = f.innerHTML + '&nbsp;'+proofreadPageMessageStatus;
546548 ig.parentNode.insertBefore(f,ig.nextSibling.nextSibling.nextSibling);
547549 if(m) {

Status & tagging log