Index: trunk/extensions/MarkAsHelpful/modules/ext.markAsHelpful/ext.markAsHelpful.js |
— | — | @@ -12,11 +12,11 @@ |
13 | 13 | |
14 | 14 | init: function() { |
15 | 15 | 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) ); |
18 | 18 | //be sure to only load once per item id |
19 | 19 | if( $.inArray( props.item, mah.ids ) === -1 ) { |
20 | | - mah.ids.push(props.item); |
| 20 | + mah.ids.push( props.item ); |
21 | 21 | mah.loadItem( $( this ) ); |
22 | 22 | } |
23 | 23 | }); |
— | — | @@ -81,7 +81,7 @@ |
82 | 82 | 'page': mw.config.get( 'wgPageName' ), |
83 | 83 | 'useragent': clientData.name + '/' + clientData.versionNumber, |
84 | 84 | 'system': clientData.platform, |
85 | | - 'token': mw.config.get('mahEditToken'), |
| 85 | + 'token': mw.config.get( 'mahEditToken' ), |
86 | 86 | 'format': 'json' |
87 | 87 | }, props ); |
88 | 88 | |