server/src/assets/js/mtdc-tracking-worker.js
changeset 96 12dab8a7797c
parent 90 00c9bb0f6f37
child 98 6ff1d74b4afe
equal deleted inserted replaced
95:c8c95c522f48 96:12dab8a7797c
   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