Index: trunk/extensions/ProofreadPage/proofread.js |
— | — | @@ -102,6 +102,7 @@ |
103 | 103 | pageHeader = '{{PageQuality|1|}}<div class="pagetext">'; |
104 | 104 | pageBody = text; |
105 | 105 | pageFooter = '<references/></div>'; |
| 106 | + document.editform.elements["wpSummary"].value="/* "+proofreadPageMessageQuality1+" */"; |
106 | 107 | } |
107 | 108 | } |
108 | 109 | |
— | — | @@ -497,10 +498,10 @@ |
498 | 499 | |
499 | 500 | var text=""; |
500 | 501 | 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; |
505 | 506 | } |
506 | 507 | |
507 | 508 | form.elements["wpSummary"].value="/* "+text+" */"; |
— | — | @@ -537,10 +538,11 @@ |
538 | 539 | } |
539 | 540 | var f = document.createElement("span"); |
540 | 541 | 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>'; |
545 | 547 | f.innerHTML = f.innerHTML + ' '+proofreadPageMessageStatus; |
546 | 548 | ig.parentNode.insertBefore(f,ig.nextSibling.nextSibling.nextSibling); |
547 | 549 | if(m) { |