Index: trunk/extensions/FlaggedRevs/client/review.js |
— | — | @@ -217,7 +217,6 @@ |
218 | 218 | if( response.indexOf('<suc#>') == 0 ) { |
219 | 219 | document.title = wgAjaxReview.actioncomplete; |
220 | 220 | if( rsubmit ) { |
221 | | - rsubmit.disabled = ''; // unlock flag button |
222 | 221 | // If flagging is just binary, flip the form |
223 | 222 | if( usubmit ) { |
224 | 223 | // Revision was flagged |
— | — | @@ -229,9 +228,11 @@ |
230 | 229 | // Revision was unflagged |
231 | 230 | } else if( usubmit.value == wgAjaxReview.sendingMsg ) { |
232 | 231 | usubmit.value = wgAjaxReview.unflagMsg; // back to normal |
| 232 | + rsubmit.disabled = ''; // unlock flag button |
233 | 233 | } |
234 | 234 | } else { |
235 | 235 | rsubmit.value = wgAjaxReview.sendMsg; // back to normal |
| 236 | + rsubmit.disabled = ''; // unlock flag button |
236 | 237 | } |
237 | 238 | } |
238 | 239 | // Hide "review this" box on diffs |
— | — | @@ -253,10 +254,10 @@ |
254 | 255 | } else { |
255 | 256 | document.title = wgAjaxReview.actionfailed; |
256 | 257 | if( rsubmit ) { |
257 | | - rsubmit.disabled = ''; // unlock flag button |
258 | 258 | // Revision was flagged |
259 | 259 | if( rsubmit.value == wgAjaxReview.sendingMsg ) { |
260 | 260 | rsubmit.value = wgAjaxReview.flagMsg; // back to normal |
| 261 | + rsubmit.disabled = ''; // unlock flag button |
261 | 262 | // Revision was unflagged |
262 | 263 | } else if( usubmit.value == wgAjaxReview.sendingMsg ) { |
263 | 264 | usubmit.value = wgAjaxReview.unflagMsg; // back to normal |