Index: trunk/extensions/ProofreadPage/proofread.js |
— | — | @@ -917,11 +917,19 @@ |
918 | 918 | |
919 | 919 | function pr_add_quality_buttons(){ |
920 | 920 | |
921 | | - if( !proofreadPageAddButtons ) return; |
922 | 921 | var ig = document.getElementById("wpWatchthis"); |
923 | 922 | if( !ig ) ig = document.getElementById("wpSummary"); |
924 | 923 | if( !ig ) return; |
925 | 924 | var f = document.createElement("span"); |
| 925 | + ig.parentNode.insertBefore(f,ig.nextSibling.nextSibling.nextSibling); |
| 926 | + |
| 927 | + if( !proofreadPageAddButtons ) { |
| 928 | + f.innerHTML = |
| 929 | + ' <input type="hidden" name="wpProofreader" value="' + self.proofreadpage_username + '">' |
| 930 | + +'<input type="hidden" name="quality" value=' + self.proofreadpage_quality + ' >'; |
| 931 | + return; |
| 932 | + } |
| 933 | + |
926 | 934 | f.innerHTML = |
927 | 935 | ' <input type="hidden" name="wpProofreader" value="'+self.proofreadpage_username+'">' |
928 | 936 | +'<span class="quality0"> <input type="radio" name="quality" value=0 onclick="pr_add_quality(this.form,0)" tabindex=4> </span>' |
— | — | @@ -931,8 +939,6 @@ |
932 | 940 | +'<span class="quality4"> <input type="radio" name="quality" value=4 onclick="pr_add_quality(this.form,4)" tabindex=4> </span>'; |
933 | 941 | f.innerHTML = f.innerHTML + ' ' + escapeQuotesHTML(proofreadPageMessageStatus); |
934 | 942 | |
935 | | - ig.parentNode.insertBefore(f,ig.nextSibling.nextSibling.nextSibling); |
936 | | - |
937 | 943 | if( ! ( ( self.proofreadpage_quality == 4 ) || ( ( self.proofreadpage_quality == 3 ) && ( self.proofreadpage_username != proofreadPageUserName ) ) ) ) { |
938 | 944 | document.editform.quality[4].parentNode.style.cssText = 'display:none'; |
939 | 945 | document.editform.quality[4].disabled = true; |