Index: trunk/extensions/MoodBar/modules/jquery.moodBar/jquery.moodBar.js |
— | — | @@ -28,7 +28,6 @@ |
29 | 29 | 'page': fbProps.page, |
30 | 30 | 'comment': fbProps.comment, |
31 | 31 | 'anonymize': fbProps.anonymize, |
32 | | - 'editmode': fbProps.editmode, |
33 | 32 | 'useragent': clientData.name + '/' + clientData.versionBase, |
34 | 33 | 'system': clientData.platform, |
35 | 34 | 'bucket': fbProps.bucket, |
— | — | @@ -36,6 +35,11 @@ |
37 | 36 | 'token': mw.config.get('mbConfig').editToken, |
38 | 37 | 'format': 'json' |
39 | 38 | }; |
| 39 | + |
| 40 | + // API treats any value as true. |
| 41 | + if ( fbProps.editmode ) { |
| 42 | + apiRequest.editmode = true; |
| 43 | + } |
40 | 44 | |
41 | 45 | return $.ajax( { |
42 | 46 | type: 'post', |