Index: trunk/extensions/FlaggedRevs/flaggedrevs.js |
— | — | @@ -90,10 +90,9 @@ |
91 | 91 | var submit = document.getElementById('submitreview'); |
92 | 92 | submit.disabled = ( somezero && !allzero ) ? 'disabled' : ''; |
93 | 93 | var comment = document.getElementById('wpReason'); |
94 | | - comment.disabled = ( somezero && !allzero ) ? 'disabled' : ''; |
95 | 94 | // Clear comment box data if not shown |
96 | | - var comment = document.getElementById('wpReason'); |
97 | 95 | if( comment ) { |
| 96 | + comment.disabled = ( somezero && !allzero ) ? 'disabled' : ''; |
98 | 97 | comment.value = showComment ? comment.value : ''; |
99 | 98 | } |
100 | 99 | // Clear note box data if not shown |