r51949 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51948‎ | r51949 | r51950 >
Date:07:39, 16 June 2009
Author:thomasv
Status:ok
Tags:
Comment:
disable the blank page test
Modified paths:
  • /trunk/extensions/ProofreadPage/ProofreadPage.php (modified) (history)
  • /trunk/extensions/ProofreadPage/proofread.js (modified) (history)

Diff [purge]

Index: trunk/extensions/ProofreadPage/ProofreadPage.php
@@ -18,7 +18,7 @@
1919 $wgDjvutxt = null;
2020
2121 # Bump the version number every time you change proofread.js
22 -$wgProofreadPageVersion = 20;
 22+$wgProofreadPageVersion = 21;
2323
2424 # Max width of zoomable image
2525 $wgProofreadPageMaxWidth = 2048;
Index: trunk/extensions/ProofreadPage/proofread.js
@@ -768,10 +768,10 @@
769769 var form = document.getElementById("editform");
770770 var header = form.elements["headerTextbox"];
771771 var footer = form.elements["footerTextbox"];
772 - if( ( self.proofreadpage_quality == 0 ) && ( form.elements["wpTextbox1"].value != "" ) ) {
773 - self.proofreadpage_quality = 1;
774 - form.elements["wpSummary"].value="/* " + proofreadPageMessageQuality1 + " */ ";
775 - }
 772+ //if( ( self.proofreadpage_quality == 0 ) && ( form.elements["wpTextbox1"].value != "" ) ) {
 773+ // self.proofreadpage_quality = 1;
 774+ // form.elements["wpSummary"].value="/* " + proofreadPageMessageQuality1 + " */ ";
 775+ //}
776776 if(header){
777777 var h = header.value.replace(/(\s*(\r?\n|\r))+$/, '');
778778 if(h) h = "<noinclude>{{PageQuality|"+self.proofreadpage_quality+"|"+self.proofreadpage_username+"}}"+h+"\n\n\n</noinclude>";
@@ -851,7 +851,7 @@
852852 function pr_add_quality(form,value){
853853
854854 var tbv = form.elements["wpTextbox1"].value;
855 - if( ( ( value == 0 ) && ( tbv != "" ) ) || ( ( value >= 3 ) && ( tbv == "" ) ) ) {
 855+ if( /*( ( value == 0 ) && ( tbv != "" ) ) ||*/ ( ( value >= 3 ) && ( tbv == "" ) ) ) {
856856 switch( self.proofreadpage_quality ) {
857857 case 4: document.editform.quality[4].checked = true; break;
858858 case 3: document.editform.quality[3].checked = true; break;

Status & tagging log