Index: trunk/extensions/ArticleFeedback/modules/jquery.articleFeedback/jquery.articleFeedback.js |
— | — | @@ -207,7 +207,7 @@ |
208 | 208 | 'anontoken': mw.user.id(), |
209 | 209 | 'pageid': mw.config.get( 'wgArticleId' ), |
210 | 210 | 'revid': mw.config.get( 'wgCurRevisionId' ), |
211 | | - 'bucket': context.options.bucket |
| 211 | + 'bucket': Number( showOptions ) |
212 | 212 | } ), |
213 | 213 | 'success': function( data ) { |
214 | 214 | var context = this; |
— | — | @@ -787,7 +787,6 @@ |
788 | 788 | * Can be called with an options object like... |
789 | 789 | * |
790 | 790 | * $( ... ).articleFeedback( { |
791 | | - * 'bucket': 1, // Numeric identifier of the bucket being used, which is logged on submit |
792 | 791 | * 'ratings': { |
793 | 792 | * 'rating-name': { |
794 | 793 | * 'id': 1, // Numeric identifier of the rating, same as the rating_id value in the db |
— | — | @@ -808,7 +807,7 @@ |
809 | 808 | var context = $(this).data( 'articleFeedback-context' ); |
810 | 809 | if ( !context ) { |
811 | 810 | // Create context |
812 | | - context = { '$ui': $(this), 'options': { 'ratings': {}, 'pitches': {}, 'bucket': 1 } }; |
| 811 | + context = { '$ui': $(this), 'options': { 'ratings': {}, 'pitches': {} } }; |
813 | 812 | // Allow customization through an options argument |
814 | 813 | if ( typeof args[0] === 'object' ) { |
815 | 814 | context = $.extend( true, context, { 'options': args[0] } ); |