Index: trunk/extensions/ArticleAssessmentPilot/ArticleAssessmentPilot.hooks.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | ); |
14 | 14 | |
15 | 15 | private static $scriptFiles = array( |
16 | | - array( 'src' => 'js/ArticleAssessment.js', 'version' => 1 ), |
| 16 | + array( 'src' => 'js/ArticleAssessment.js', 'version' => 2 ), |
17 | 17 | array( 'src' => 'js/jquery.cookie.js', 'version' => 1 ), |
18 | 18 | array( 'src' => 'js/jquery.tipsy.js', 'version' => 1 ), |
19 | 19 | array( 'src' => 'js/jquery.stars.js', 'version' => 1 ), |
Index: trunk/extensions/ArticleAssessmentPilot/js/ArticleAssessment.js |
— | — | @@ -279,7 +279,7 @@ |
280 | 280 | } |
281 | 281 | } |
282 | 282 | // if the rating is more than 5 revisions old, mark it as stale |
283 | | - if( data.query.articleassessment.stale ) { |
| 283 | + if ( typeof data.query.articleassessment[0].stale != 'undefined' ) { |
284 | 284 | // add the stale star class to each on star |
285 | 285 | $( '.ui-stars-star-on' ) |
286 | 286 | .addClass( 'ui-stars-star-stale' ); |