Index: trunk/extensions/ProofreadPage/proofread.js |
— | — | @@ -95,7 +95,7 @@ |
96 | 96 | pageBody = text; |
97 | 97 | pageFooter = proofreadPageFooter; |
98 | 98 | if( document.editform ) { |
99 | | - document.editform.elements['wpSummary'].value = "/* " + mediaWiki.msg.get( 'proofreadpage_quality1_category' ) + " */ "; |
| 99 | + document.editform.elements['wpSummary'].value = '/* ' + mediaWiki.msg.get( 'proofreadpage_quality1_category' ) + ' */ '; |
100 | 100 | } |
101 | 101 | } |
102 | 102 | } |
— | — | @@ -166,7 +166,11 @@ |
167 | 167 | pageHeader = pageHeader.split( '&' ).join( '&' ); |
168 | 168 | pageFooter = pageFooter.split( '&' ).join( '&' ); |
169 | 169 | |
170 | | - if ( ! self.proofreadpage_show_headers ) headers_style = 'display:none'; else headers_style=''; |
| 170 | + if ( !self.proofreadpage_show_headers ) { |
| 171 | + headers_style = 'display:none'; |
| 172 | + } else { |
| 173 | + headers_style = ''; |
| 174 | + } |
171 | 175 | |
172 | 176 | container.innerHTML = '' + |
173 | 177 | '<div id="prp_header" style="' + headers_style + '">' + |
— | — | @@ -601,7 +605,7 @@ |
602 | 606 | } |
603 | 607 | } |
604 | 608 | |
605 | | -self.pr_zoom = function(delta) { |
| 609 | +self.pr_zoom = function( delta ) { |
606 | 610 | if ( delta == 0 ) { |
607 | 611 | // reduce width by 20 pixels in order to prevent horizontal scrollbar |
608 | 612 | // from showing up |
— | — | @@ -776,7 +780,7 @@ |
777 | 781 | pr_container.addEventListener( 'DOMMouseScroll', pr_zoom_wheel, false ); |
778 | 782 | } |
779 | 783 | pr_container.onmousewheel = pr_zoom_wheel; // IE, Opera. |
780 | | - pr_load_image(view_url); |
| 784 | + pr_load_image( view_url ); |
781 | 785 | } |
782 | 786 | |
783 | 787 | table.setAttribute( 'id', 'textBoxTable' ); |
— | — | @@ -959,19 +963,19 @@ |
960 | 964 | var text = ''; |
961 | 965 | switch( value ) { |
962 | 966 | case 0: |
963 | | - text = mediaWiki.msg.get( 'proofreadpage_quality0_category' ); |
| 967 | + text = mediaWiki.msg.get( 'proofreadpage_quality0_category' ); |
964 | 968 | break; |
965 | 969 | case 1: |
966 | | - text = mediaWiki.msg.get( 'proofreadpage_quality1_category' ); |
| 970 | + text = mediaWiki.msg.get( 'proofreadpage_quality1_category' ); |
967 | 971 | break; |
968 | 972 | case 2: |
969 | | - text = mediaWiki.msg.get( 'proofreadpage_quality2_category' ); |
| 973 | + text = mediaWiki.msg.get( 'proofreadpage_quality2_category' ); |
970 | 974 | break; |
971 | 975 | case 3: |
972 | | - text = mediaWiki.msg.get( 'proofreadpage_quality3_category' ); |
| 976 | + text = mediaWiki.msg.get( 'proofreadpage_quality3_category' ); |
973 | 977 | break; |
974 | 978 | case 4: |
975 | | - text = mediaWiki.msg.get( 'proofreadpage_quality4_category' ); |
| 979 | + text = mediaWiki.msg.get( 'proofreadpage_quality4_category' ); |
976 | 980 | break; |
977 | 981 | } |
978 | 982 | form.elements['wpSummary'].value = '/* ' + text + ' */ '; |