From: Andrew Magliozzi Date: Mon, 7 Oct 2013 12:31:10 +0000 (-0400) Subject: move upload form submit tracker to post request 'success' block X-Git-Tag: release-20150131~386^2~64 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bfcfed6ffc25a455f502a9f6d10ecfe78fd25237;p=oweals%2Fkarmaworld.git move upload form submit tracker to post request 'success' block --- diff --git a/karmaworld/templates/partial/filepicker.html b/karmaworld/templates/partial/filepicker.html index c34e226..89a7997 100644 --- a/karmaworld/templates/partial/filepicker.html +++ b/karmaworld/templates/partial/filepicker.html @@ -105,7 +105,6 @@ $('#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; @@ -135,6 +134,7 @@ $('#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);