Index: trunk/extensions/ProofreadPage/proofread.js |
— | — | @@ -776,15 +776,11 @@ |
777 | 777 | var form = document.getElementById("editform"); |
778 | 778 | var header = form.elements["headerTextbox"]; |
779 | 779 | var footer = form.elements["footerTextbox"]; |
780 | | - //if( ( self.proofreadpage_quality == 0 ) && ( form.elements["wpTextbox1"].value != "" ) ) { |
781 | | - // self.proofreadpage_quality = 1; |
782 | | - // form.elements["wpSummary"].value="/* " + proofreadPageMessageQuality1 + " */ "; |
783 | | - //} |
784 | 780 | if(header){ |
785 | 781 | var h = header.value.replace(/(\s*(\r?\n|\r))+$/, ''); |
786 | | - if(h) h = "<noinclude><pagequality level=\""+self.proofreadpage_quality+"\" user=\""+self.proofreadpage_username+"\" />"+h+"\n\n\n</noinclude>"; |
| 782 | + h = "<noinclude><pagequality level=\""+self.proofreadpage_quality+"\" user=\""+self.proofreadpage_username+"\" />"+h+"\n\n\n</noinclude>"; |
787 | 783 | var f = footer.value; |
788 | | - if(f) f = "<noinclude>\n"+f+"</noinclude>"; |
| 784 | + f = "<noinclude>\n"+f+"</noinclude>"; |
789 | 785 | var ph = header.parentNode; |
790 | 786 | ph.removeChild(header); |
791 | 787 | var pf = footer.parentNode; |