Index: trunk/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.js |
— | — | @@ -648,10 +648,8 @@ |
649 | 649 | * holder |
650 | 650 | */ |
651 | 651 | afterBuild: function () { |
652 | | - |
653 | 652 | // Default to 'suggestion' |
654 | | - // $.articleFeedbackv5.currentBucket().selectTag( 'suggestion' ); |
655 | | - |
| 653 | + $.articleFeedbackv5.currentBucket().selectTag( 'suggestion' ); |
656 | 654 | }, |
657 | 655 | |
658 | 656 | // }}} |
Index: trunk/extensions/ArticleFeedbackv5/modules/ext.articleFeedbackv5/ext.articleFeedbackv5.startup.js |
— | — | @@ -32,6 +32,13 @@ |
33 | 33 | 'exclude': mw.config.get( 'wgArticleFeedbackv5BlacklistCategories', [] ), |
34 | 34 | 'current': mw.config.get( 'wgCategories', [] ) |
35 | 35 | }; |
| 36 | + |
| 37 | + // Categories are configures with underscores, but article's categories are returned with |
| 38 | + // spaces instead. Revent to underscores here for sane comparison. |
| 39 | + for( cat in categories['current'] ) { |
| 40 | + categories['current'][cat] = categories['current'][cat].replace(/\s/gi, '_'); |
| 41 | + console.log(categories['current'][cat]); |
| 42 | + } |
36 | 43 | |
37 | 44 | // Category exclusion |
38 | 45 | var disable = false; |