diff --git a/includes/ReviewHandler.php b/includes/ReviewHandler.php index 4ad9483..f49a42d 100644 --- a/includes/ReviewHandler.php +++ b/includes/ReviewHandler.php @@ -169,10 +169,14 @@ public function getTemplate() { $diff = new DifferenceEngine( null, $lastSeenId, 0 ); - $template = - "
$bannerText
"; + $template = "$bannerText
"; global $egWatchAnalyticsShowUnreviewDiff; if ( $egWatchAnalyticsShowUnreviewDiff ) { diff --git a/modules/pendingreviews/ext.watchanalytics.pendingreviews.css b/modules/pendingreviews/ext.watchanalytics.pendingreviews.css index 6ea06ee..cab183e 100644 --- a/modules/pendingreviews/ext.watchanalytics.pendingreviews.css +++ b/modules/pendingreviews/ext.watchanalytics.pendingreviews.css @@ -49,6 +49,10 @@ tr.pendingreviews-row-hover td { background-color: #f9f9f9; } +div.pending-review-diff td { + background-color: #fff; +} + .pendingreviews-legend { float:right; margin-bottom: 10px; diff --git a/modules/reviewhandler/reviewhandler.js b/modules/reviewhandler/reviewhandler.js index 5d597c7..e01a5fa 100644 --- a/modules/reviewhandler/reviewhandler.js +++ b/modules/reviewhandler/reviewhandler.js @@ -41,6 +41,13 @@ rowLines.remove(); }); + rowLines.css("background-color", "#00af89"); + rowLines.html("Page reviewed!"); + + rowLines.fadeOut( 700, function() { + rowLines.remove(); + }); + }); }); diff --git a/specials/SpecialPendingReviews.php b/specials/SpecialPendingReviews.php index 5daa358..16a5fb0 100644 --- a/specials/SpecialPendingReviews.php +++ b/specials/SpecialPendingReviews.php @@ -300,32 +300,33 @@ public function getStandardChangeRow( PendingReview $item, $rowCount ) { $changes = $this->getPendingReviewChangesList( $combinedList ); $acceptChangesButton = null; - if ( count( $item->newRevisions ) ) { - $previousViewedChange = Revision::newFromRow( $item->newRevisions[0] )->getPrevious(); - if ( $previousViewedChange ) { - $prevId = $previousViewedChange->getId(); - $context = new DerivativeContext( RequestContext::getMain() ); - $context->setTitle( $item->title ); - $diff = new DifferenceEngine( $context, $prevId, 0 ); - $diff->showDiffStyle(); - $theDiff = $diff->getDiff( 'Last seen', 'Current' ); - - $numChars = strlen( $theDiff ); - $numRows = substr_count( $theDiff, '