Index: trunk/extensions/MoodBar/modules/jquery.moodBar/jquery.moodBar.js |
— | — | @@ -19,25 +19,25 @@ |
20 | 20 | */ |
21 | 21 | 'submit': function( fbProps ) { |
22 | 22 | var clientData = $.client.profile(), |
23 | | - fbProps = $.extend( { |
| 23 | + fb = $.extend( { |
24 | 24 | 'page': mw.config.get( 'wgPageName' ), |
25 | 25 | 'editmode': mw.config.get( 'wgAction' ) == 'edit' ? 1 : 0 |
26 | 26 | }, fbProps ), |
27 | 27 | apiRequest = { |
28 | 28 | 'action': 'moodbar', |
29 | | - 'page': fbProps.page, |
30 | | - 'comment': fbProps.comment, |
31 | | - 'anonymize': fbProps.anonymize, |
| 29 | + 'page': fb.page, |
| 30 | + 'comment': fb.comment, |
| 31 | + 'anonymize': fb.anonymize, |
32 | 32 | 'useragent': clientData.name + '/' + clientData.versionNumber, |
33 | 33 | 'system': clientData.platform, |
34 | | - 'bucket': fbProps.bucket, |
35 | | - 'type': fbProps.type, |
| 34 | + 'bucket': fb.bucket, |
| 35 | + 'type': fb.type, |
36 | 36 | 'token': mw.config.get('mbEditToken'), |
37 | 37 | 'format': 'json' |
38 | 38 | }; |
39 | 39 | |
40 | 40 | // API treats any value as true. |
41 | | - if ( fbProps.editmode ) { |
| 41 | + if ( fb.editmode ) { |
42 | 42 | apiRequest.editmode = true; |
43 | 43 | } |
44 | 44 | |
— | — | @@ -45,7 +45,7 @@ |
46 | 46 | type: 'post', |
47 | 47 | url: mw.util.wikiScript( 'api' ), |
48 | 48 | data: apiRequest, |
49 | | - success: fbProps.callback, |
| 49 | + success: fb.callback, |
50 | 50 | dataType: 'json' |
51 | 51 | } ); |
52 | 52 | } |