r83920 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83919‎ | r83920 | r83921 >
Date:16:42, 14 March 2011
Author:catrope
Status:ok
Tags:
Comment:
Vector/SectionEditLinks: Use $.trackActionURL() from r83919
Modified paths:
  • /trunk/extensions/Vector/modules/ext.vector.sectionEditLinks.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Vector/modules/ext.vector.sectionEditLinks.js
@@ -39,12 +39,9 @@
4040 'clicktrackingevent':
4141 'ext.vector.sectionEditLinks-bucket:' + bucket + '@' + experiment + '-save'
4242 } );
43 - $(this).attr( 'href', mediaWiki.config.get( 'wgScriptPath' ) + '/api.php?' + $.param( {
44 - 'action': 'clicktracking',
45 - 'eventid': 'ext.vector.sectionEditLinks-bucket:' + bucket + '@' + experiment + '-click',
46 - 'token': session,
47 - 'redirectto': editUrl
48 - } ) );
 43+ $(this).attr( 'href', $.trackActionURL( editUrl,
 44+ 'ext.vector.sectionEditLinks-bucket: ' + bucket + '@' + experiment + '-click'
 45+ ) );
4946 } );
5047 if ( bucket == 2 ) {
5148 // Move the link over to be next to the heading text and style it with an icon

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r83919ClickTracking: Factor api.php?action=clicktracking&redirectto=... URL generat...catrope16:41, 14 March 2011

Status & tagging log