accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject svn commit: r1631781 - /accumulo/site/trunk/content/downloads/index.mdtext
Date Tue, 14 Oct 2014 15:11:18 GMT
Author: elserj
Date: Tue Oct 14 15:11:18 2014
New Revision: 1631781

URL: http://svn.apache.org/r1631781
Log:
event should be accessible through `this`

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=1631781&r1=1631780&r2=1631781&view=diff
==============================================================================
--- accumulo/site/trunk/content/downloads/index.mdtext (original)
+++ accumulo/site/trunk/content/downloads/index.mdtext Tue Oct 14 15:11:18 2014
@@ -23,9 +23,8 @@ Notice:    Licensed to the Apache Softwa
 * This function takes a valid URL string as an argument, and uses that URL string
 * as the event label.
 */
-/* the event variable doesn't exist -- not sure how this worked before
 var trackOutboundLink = function(url) {
-  var hrefUrl = event.target.getAttribute('href')
+  var hrefUrl = this.target.getAttribute('href')
   if (event.ctrlKey || event.shiftKey || event.metaKey || event.which == 2) {
     var newWin = true;}
 
@@ -37,14 +36,15 @@ var trackOutboundLink = function(url) {
     function () {window.location.href = hrefUrl;}}, {'nonInteraction': 1});
     return false;
   }
-};*/
+};
+/* original GA code
 var trackOutboundLink = function(url) {
    ga('send', 'event', 'outbound', 'click', url, {'hitCallback':
      function () {
      document.location = url;
      }
    });
-}
+}*/
 
 var createSection = function(name, items, divider) {
   var section = '';



Mime
View raw message