Index: trunk/extensions/ProofreadPage/proofread.js |
— | — | @@ -893,12 +893,8 @@ |
894 | 894 | } |
895 | 895 | |
896 | 896 | // add CSS classes to the container div |
897 | | - var c = document.getElementById( 'pagequality' ); |
898 | | - if( c ) { |
899 | | - c = c.nextSibling; |
900 | | - if( c.className == 'pagetext' ) { |
901 | | - c.className += ' ' + self.proofreadPageCss; |
902 | | - } |
| 897 | + if( self.proofreadPageCss) { |
| 898 | + $( 'div.pagetext' ).addClass( self.proofreadPageCss ); |
903 | 899 | } |
904 | 900 | } |
905 | 901 | |