Index: trunk/extensions/ArticleFeedback/modules/jquery.articleFeedback/jquery.articleFeedback.js |
— | — | @@ -662,7 +662,10 @@ |
663 | 663 | // the user has rejected this within 3 days of right now |
664 | 664 | var display = $.cookie( prefix( 'pitch-' + key ) ); |
665 | 665 | if ( display !== 'hide' && context.options.pitches[key].condition() ) { |
666 | | - pitches.push( key ); |
| 666 | + var weight = 'weight' in pitches ? pitches.weight : 1; |
| 667 | + for ( var i = 0; i < weight; i++ ) { |
| 668 | + pitches.push( key ); |
| 669 | + } |
667 | 670 | } |
668 | 671 | } |
669 | 672 | if ( pitches.length ) { |
Index: trunk/extensions/ArticleFeedback/modules/ext.articleFeedback/ext.articleFeedback.js |
— | — | @@ -219,6 +219,7 @@ |
220 | 220 | }, |
221 | 221 | 'pitches': { |
222 | 222 | 'survey': { |
| 223 | + 'weight': 1, |
223 | 224 | 'condition': function() { |
224 | 225 | return isPitchVisible( 'survey' ); |
225 | 226 | }, |
— | — | @@ -236,6 +237,7 @@ |
237 | 238 | 'reject': 'articlefeedback-pitch-reject' |
238 | 239 | }, |
239 | 240 | 'join': { |
| 241 | + 'weight': 1, |
240 | 242 | 'condition': function() { |
241 | 243 | return isPitchVisible( 'join' ) && mw.user.anonymous(); |
242 | 244 | }, |
— | — | @@ -273,6 +275,7 @@ |
274 | 276 | } |
275 | 277 | }, |
276 | 278 | 'edit': { |
| 279 | + 'weight': 2, |
277 | 280 | 'condition': function() { |
278 | 281 | // An empty restrictions array means anyone can edit |
279 | 282 | var restrictions = mw.config.get( 'wgRestrictionEdit' ); |