Index: trunk/extensions/FlaggedRevs/presentation/modules/ext.flaggedRevs.review.js |
— | — | @@ -214,6 +214,7 @@ |
215 | 215 | // Review form elements |
216 | 216 | var asubmit = $( '#mw-fr-submit-accept' ); // ACCEPT |
217 | 217 | var usubmit = $( '#mw-fr-submit-unaccept' ); // UNACCEPT |
| 218 | + var rsubmit = $( '#mw-fr-submit-reject' ); // REJECT |
218 | 219 | var diffNotice = $( '#mw-fr-difftostable' ); |
219 | 220 | // FlaggedRevs rating box |
220 | 221 | var tagBox = $( '#mw-fr-revisiontag' ); |
— | — | @@ -233,6 +234,7 @@ |
234 | 235 | usubmit.css( 'fontWeight', '' ); // back to normal |
235 | 236 | usubmit.show(); // now available |
236 | 237 | usubmit.prop( 'disabled', '' ); // unlock |
| 238 | + rsubmit.prop( 'disabled', 'disabled' ); // lock if present |
237 | 239 | // Revision was unflagged |
238 | 240 | } else if ( usubmit.val() === mw.msg( 'revreview-submitting' ) ) { |
239 | 241 | usubmit.val( mw.msg( 'revreview-submit-unreviewed' ) ); // done! |
— | — | @@ -241,6 +243,7 @@ |
242 | 244 | asubmit.val( mw.msg( 'revreview-submit-review' ) ); |
243 | 245 | asubmit.css( 'fontWeight', '' ); // back to normal |
244 | 246 | asubmit.prop( 'disabled', '' ); // unlock |
| 247 | + rsubmit.prop( 'disabled', '' ); // unlock if present |
245 | 248 | } |
246 | 249 | } |
247 | 250 | // (b) Remove review tag from drafts |