Index: trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.user/ext.articleCreation.user.js |
— | — | @@ -160,9 +160,10 @@ |
161 | 161 | urlTemplate = urlTemplate.replace( '{{USER}}', encodeURIComponent( wgUserName ) ); |
162 | 162 | urlTemplate = urlTemplate.replace( '{{SCRIPT}}', wgScript ); |
163 | 163 | |
164 | | - ac.trackAction(article, action); |
165 | | - |
166 | | - window.location.href = urlTemplate; |
| 164 | + ac.trackAction(article, action) |
| 165 | + .complete( function() { |
| 166 | + window.location.href = urlTemplate; |
| 167 | + }); |
167 | 168 | }, |
168 | 169 | |
169 | 170 | disableInterstitial : function(button) { |
— | — | @@ -198,7 +199,7 @@ |
199 | 200 | title = title.charAt(0).toUpperCase() + title.substr(1); |
200 | 201 | title = title.replace(' ', '_' ); |
201 | 202 | |
202 | | - jQuery.trackActionWithOptions( { |
| 203 | + return jQuery.trackActionWithOptions( { |
203 | 204 | id : ac.config['tracking-code-prefix'] + action, |
204 | 205 | namespace : namespaceNumber, |
205 | 206 | info : title |