r107139 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107138‎ | r107139 | r107140 >
Date:08:41, 23 December 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Followup r107102 - consistent whitespace
Modified paths:
  • /trunk/extensions/MarkAsHelpful/modules/ext.markAsHelpful/ext.markAsHelpful.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MarkAsHelpful/modules/ext.markAsHelpful/ext.markAsHelpful.js
@@ -12,11 +12,11 @@
1313
1414 init: function() {
1515 var props;
16 - $( mah.selector ).each ( function (i, e) {
17 - props = mah.getItemProperties ( $(this) );
 16+ $( mah.selector ).each( function ( i, e ) {
 17+ props = mah.getItemProperties( $(this) );
1818 //be sure to only load once per item id
1919 if( $.inArray( props.item, mah.ids ) === -1 ) {
20 - mah.ids.push(props.item);
 20+ mah.ids.push( props.item );
2121 mah.loadItem( $( this ) );
2222 }
2323 });
@@ -81,7 +81,7 @@
8282 'page': mw.config.get( 'wgPageName' ),
8383 'useragent': clientData.name + '/' + clientData.versionNumber,
8484 'system': clientData.platform,
85 - 'token': mw.config.get('mahEditToken'),
 85+ 'token': mw.config.get( 'mahEditToken' ),
8686 'format': 'json'
8787 }, props );
8888

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r107102reworked last commit to filter prior to load method, fix ie7 cache problem wi...rmoen19:57, 22 December 2011

Status & tagging log