move upload form submit tracker to post request 'success' block
authorAndrew Magliozzi <andrew.magliozzi@gmail.com>
Mon, 7 Oct 2013 12:31:10 +0000 (08:31 -0400)
committerAndrew Magliozzi <andrew.magliozzi@gmail.com>
Mon, 7 Oct 2013 12:31:10 +0000 (08:31 -0400)
karmaworld/templates/partial/filepicker.html

index c34e2269d4da4191247effcbe4b07f59c4e6c7a8..89a79973116c37387a9e9c5d5d9df8424127e9bb 100644 (file)
 
         $('#save-btn').on('click', function(e){
           e.stopPropagation();
-          _gat._getTracker()._trackEvent('upload', 'upload form submitted');
           $('#forms_container .inline-form').each(function(i,el){
               console.log("inline form " + i + "el: " + el);
               var name, tags, fpurl, course;
                   $('#success').show();
                   document.getElementById('save-btn').style.display = 'none';
                   $('#forms_container .inline-form').remove();
+                  _gat._getTracker()._trackEvent('upload', 'upload form submitted');
                   setTimeout(function(){
                     location.reload(true);
                   }, 15000);