r92883 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92882‎ | r92883 | r92884 >
Date:20:52, 22 July 2011
Author:werdna
Status:ok
Tags:
Comment:
Fix bug where everything was in "edit mode"
Modified paths:
  • /trunk/extensions/MoodBar/modules/jquery.moodBar/jquery.moodBar.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MoodBar/modules/jquery.moodBar/jquery.moodBar.js
@@ -28,7 +28,6 @@
2929 'page': fbProps.page,
3030 'comment': fbProps.comment,
3131 'anonymize': fbProps.anonymize,
32 - 'editmode': fbProps.editmode,
3332 'useragent': clientData.name + '/' + clientData.versionBase,
3433 'system': clientData.platform,
3534 'bucket': fbProps.bucket,
@@ -36,6 +35,11 @@
3736 'token': mw.config.get('mbConfig').editToken,
3837 'format': 'json'
3938 };
 39+
 40+ // API treats any value as true.
 41+ if ( fbProps.editmode ) {
 42+ apiRequest.editmode = true;
 43+ }
4044
4145 return $.ajax( {
4246 type: 'post',

Status & tagging log