accumulo-commits mailing list archives

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

URL: http://svn.apache.org/r1631791
Log:
Don't set the click bind until the dom is loaded.

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=1631791&r1=1631790&r2=1631791&view=diff
==============================================================================
--- accumulo/site/trunk/content/downloads/index.mdtext (original)
+++ accumulo/site/trunk/content/downloads/index.mdtext Tue Oct 14 15:28:31 2014
@@ -23,7 +23,7 @@ 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.
 */
-$('.download_tarball').click(function(event) {
+var gaCallback = function(event) {
   var hrefUrl = event.target.getAttribute('href')
   if (event.ctrlKey || event.shiftKey || event.metaKey || event.which == 2) {
     var newWin = true;}
@@ -38,6 +38,10 @@ $('.download_tarball').click(function(ev
   }
 });
 
+$( document ).ready(function() {
+  $('.download_tarball').click(gaCallback);
+});
+
 var createSection = function(name, items, divider) {
   var section = '';
   if (divider == undefined) { divider = true; }



Mime
View raw message