r107795 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107794‎ | r107795 | r107796 >
Date:03:59, 2 January 2012
Author:johnduhart
Status:ok
Tags:
Comment:
Add formats for API calls.

It doesn't matter, it just looks like a legitimate request in firebug or whatever. Plus, I'm sure it takes more time to prettyprint it anyhow.
Modified paths:
  • /trunk/extensions/ClickTracking/modules/jquery.clickTracking.js (modified) (history)

Diff [purge]

Index: trunk/extensions/ClickTracking/modules/jquery.clickTracking.js
@@ -28,6 +28,7 @@
2929 $.post(
3030 mw.config.get( 'wgScriptPath' ) + '/api.php', {
3131 'action': 'clicktracking',
 32+ 'format' : 'json',
3233 'namespacenumber': mw.config.get( 'wgNamespaceNumber' ),
3334 'eventid': id,
3435 'token': $.cookie( 'clicktracking-session' )
@@ -44,6 +45,7 @@
4546 $.post(
4647 mw.config.get( 'wgScriptPath' ) + '/api.php', {
4748 'action': 'clicktracking',
 49+ 'format' : 'json',
4850 'eventid': id,
4951 'namespacenumber': mw.config.get( 'wgNamespaceNumber' ),
5052 'token': $.cookie( 'clicktracking-session' ),
@@ -61,6 +63,7 @@
6264 $.trackActionURL = function( url, id ) {
6365 return mw.config.get( 'wgScriptPath' ) + '/api.php?' + $.param( {
6466 'action': 'clicktracking',
 67+ 'format' : 'json',
6568 'eventid': id,
6669 'namespacenumber': mw.config.get( 'wgNamespaceNumber' ),
6770 'token': $.cookie( 'clicktracking-session' ),

Status & tagging log