equal
deleted
inserted
replaced
185 closeProject: function() { |
185 closeProject: function() { |
186 this.flushTrackingInfo(); |
186 this.flushTrackingInfo(); |
187 $.ajax({ |
187 $.ajax({ |
188 method: 'POST', |
188 method: 'POST', |
189 url: this.trackingCloseUrl, |
189 url: this.trackingCloseUrl, |
190 async: false, |
190 async: true, |
191 headers: { |
191 headers: { |
192 'X-CSRFToken': this.csrftoken |
192 'X-CSRFToken': this.csrftoken |
193 }, |
193 }, |
194 data: { |
194 data: { |
195 'renkan_guid': this.renkan.project.get('id'), |
195 'renkan_guid': this.renkan.project.get('id'), |
196 'registration': this.registration |
196 'registration': this.registration |
197 } |
197 }, |
198 |
198 contentType: 'application/json' |
199 }).fail(function(){ |
199 }).fail(function(){ |
200 console.log('send tracking data failed'); |
200 console.log('send tracking data failed'); |
201 }); // this is fire and forget. Nothong tpo do on failed |
201 }); // this is fire and forget. Nothong tpo do on failed |
202 } |
202 } |
203 |
203 |