accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject svn commit: r1689472 - /accumulo/site/trunk/content/downloads/index.mdtext
Date Mon, 06 Jul 2015 18:06:36 GMT
Author: ctubbsii
Date: Mon Jul  6 18:06:36 2015
New Revision: 1689472

URL: http://svn.apache.org/r1689472
Log:
ACCUMULO-3932 Avoid decorating entirely

* Avoid decorating download_external links at all, when google-analytics are not available.

Modified:
    accumulo/site/trunk/content/downloads/index.mdtext

Modified: accumulo/site/trunk/content/downloads/index.mdtext
URL: http://svn.apache.org/viewvc/accumulo/site/trunk/content/downloads/index.mdtext?rev=1689472&r1=1689471&r2=1689472&view=diff
==============================================================================
--- accumulo/site/trunk/content/downloads/index.mdtext (original)
+++ accumulo/site/trunk/content/downloads/index.mdtext Mon Jul  6 18:06:36 2015
@@ -29,21 +29,19 @@ var gaCallback = function(event) {
   // $(this) != this
   var url = "http://accumulo.apache.org" + $(this).attr("id")
   if (newWin) {
-    if (ga.hasOwnProperty('loaded') && ga.loaded === true) {
-      ga('send', 'event', 'outbound', 'click', url, {'nonInteraction': 1});
-    }
+    ga('send', 'event', 'outbound', 'click', url, {'nonInteraction': 1});
     return true;
   } else {
-    if (ga.hasOwnProperty('loaded') && ga.loaded === true) {
-      ga('send', 'event', 'outbound', 'click', url, {'hitCallback': 
-      function () {window.location.href = hrefUrl;}}, {'nonInteraction': 1});
-    }
+    ga('send', 'event', 'outbound', 'click', url, {'hitCallback': 
+    function () {window.location.href = hrefUrl;}}, {'nonInteraction': 1});
     return false;
   }
 };
 
 $( document ).ready(function() {
-  $('.download_external').click(gaCallback);
+  if (ga.hasOwnProperty('loaded') && ga.loaded === true) {
+    $('.download_external').click(gaCallback);
+  }
 });
 
 var createSection = function(name, items, divider) {



Mime
View raw message