Index: trunk/extensions/GPoC/GPoC.hooks.php |
— | — | @@ -47,7 +47,7 @@ |
48 | 48 | if( $title->getNamespace() == NS_TALK && $revision ) { |
49 | 49 | // All conditions to minimize the situations we've to run the job to update the data |
50 | 50 | $preparedText = $article->prepareTextForEdit( $text )->output->getText(); |
51 | | - $extractor = new AssessmentsExtractor( $article, $preparedText ); |
| 51 | + $extractor = new AssessmentsExtractor( $preparedText ); |
52 | 52 | $assessments = $extractor->extractAssessments(); |
53 | 53 | GPoCHooks::updateDatabase( $title, $assessments, $revision ); |
54 | 54 | } |
Index: trunk/extensions/GPoC/AssessmentsExtractor.php |
— | — | @@ -5,12 +5,10 @@ |
6 | 6 | **/ |
7 | 7 | class AssessmentsExtractor |
8 | 8 | { |
9 | | - private $mArticle; |
10 | 9 | private $mText; |
11 | 10 | |
12 | | - function __construct( $article, $preparedText ) { |
| 11 | + function __construct( $preparedText ) { |
13 | 12 | $this->mText = $preparedText; |
14 | | - $this->mArticle = $article; |
15 | 13 | } |
16 | 14 | |
17 | 15 | public function extractAssessments() { |
Index: trunk/extensions/GPoC/templates/FilterRatingsTemplate.php |
— | — | @@ -59,7 +59,7 @@ |
60 | 60 | selection: selection |
61 | 61 | }, function(raw_data) { |
62 | 62 | var data = $.parseJSON(raw_data); |
63 | | - $("#notice").html("Added to selection <a href='" + data.selection_url + "'>" + selection + "</a>"); |
| 63 | + $("#notice").hide().html("Added to selection <a href='" + data.selection_url + "'>" + selection + "</a>").fadeIn(); |
64 | 64 | }); |
65 | 65 | return false; |
66 | 66 | }); |