Index: trunk/extensions/ClickTracking/modules/jquery.clickTracking.js |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | * @param {string} id event identifier |
27 | 27 | */ |
28 | 28 | $.trackAction = function( id ) { |
29 | | - $.trackActionWithOptions( { 'id' : id }); |
| 29 | + return $.trackActionWithOptions( { 'id' : id }); |
30 | 30 | }; |
31 | 31 | /** |
32 | 32 | * Performs click tracking API call |
— | — | @@ -34,7 +34,7 @@ |
35 | 35 | * @param {string} info additional information to be stored with the click |
36 | 36 | */ |
37 | 37 | $.trackActionWithInfo = function( id, info ) { |
38 | | - $.trackActionWithOptions( { 'id' : id, 'info' : info }); |
| 38 | + return $.trackActionWithOptions( { 'id' : id, 'info' : info }); |
39 | 39 | }; |
40 | 40 | |
41 | 41 | /** |
— | — | @@ -67,7 +67,7 @@ |
68 | 68 | data.additional = options.info; |
69 | 69 | } |
70 | 70 | |
71 | | - $.post( mw.util.wikiScript( 'api' ), data); |
| 71 | + return $.post( mw.util.wikiScript( 'api' ), data); |
72 | 72 | }; |
73 | 73 | |
74 | 74 | /** |