Index: trunk/extensions/FlaggedRevs/language/FlaggedRevs.i18n.php |
— | — | @@ -145,8 +145,9 @@ |
146 | 146 | 'revreview-style-3' => 'Concise', |
147 | 147 | 'revreview-style-4' => 'Featured', |
148 | 148 | 'revreview-submit' => 'Submit', |
149 | | - 'revreview-submitting' => 'Submitting …', |
| 149 | + 'revreview-submitting' => 'Submitting...', |
150 | 150 | 'revreview-finished' => 'Review complete!', |
| 151 | + 'revreview-failed' => 'Review failed!', |
151 | 152 | 'revreview-successful' => '\'\'\'Revision of [[:$1|$1]] successfully flagged. ([{{fullurl:Special:Stableversions|page=$2}} view stable versions])\'\'\'', |
152 | 153 | 'revreview-successful2' => '\'\'\'Revision of [[:$1|$1]] successfully unflagged.\'\'\'', |
153 | 154 | 'revreview-text' => '\'\'[[{{MediaWiki:Validationpage}}|Stable versions]] are the default page content for viewers rather than the newest revision.\'\'', |
Index: trunk/extensions/FlaggedRevs/flaggedrevs.js |
— | — | @@ -234,7 +234,8 @@ |
235 | 235 | if( typeof wgAjaxReview === "undefined" || !wgAjaxReview ) { |
236 | 236 | wgAjaxReview = { |
237 | 237 | sendingMsg: "Submitting...", |
238 | | - sentMsg: "Submitted", |
| 238 | + sentMsgOk: "Review complete!", |
| 239 | + sentMsgBad: "Review failed!", |
239 | 240 | actioncomplete: "Action complete", |
240 | 241 | actionfailed: "Action failed" |
241 | 242 | }; |
— | — | @@ -336,9 +337,11 @@ |
337 | 338 | return; |
338 | 339 | } |
339 | 340 | var response = request.responseText; |
| 341 | + var success = false; |
340 | 342 | if( msg = response.substr(6) ) { |
341 | 343 | jsMsg( msg, 'review' ); |
342 | 344 | window.scroll(0,0); |
| 345 | + success = true; |
343 | 346 | } |
344 | 347 | wgAjaxReview.inprogress = false; |
345 | 348 | if( wgAjaxReview.timeoutID ) { |
— | — | @@ -346,7 +349,10 @@ |
347 | 350 | } |
348 | 351 | var submit = document.getElementById("submitreview"); |
349 | 352 | if( submit ) { |
350 | | - submit.value = wgAjaxReview.sentMsg; |
| 353 | + if( success ) |
| 354 | + submit.value = wgAjaxReview.sentMsgOk; |
| 355 | + else |
| 356 | + submit.value = wgAjaxReview.sentMsgBad; |
351 | 357 | } |
352 | 358 | if( response.indexOf('<suc#>') == 0 ) { |
353 | 359 | wgAjaxReview.unlockForm(); |