Return-Path: X-Original-To: apmail-accumulo-commits-archive@www.apache.org Delivered-To: apmail-accumulo-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2427517911 for ; Tue, 14 Oct 2014 15:25:05 +0000 (UTC) Received: (qmail 86673 invoked by uid 500); 14 Oct 2014 15:25:05 -0000 Delivered-To: apmail-accumulo-commits-archive@accumulo.apache.org Received: (qmail 86640 invoked by uid 500); 14 Oct 2014 15:25:05 -0000 Mailing-List: contact commits-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list commits@accumulo.apache.org Received: (qmail 86630 invoked by uid 99); 14 Oct 2014 15:25:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Oct 2014 15:25:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Oct 2014 15:24:42 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 9705723889BB; Tue, 14 Oct 2014 15:24:41 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1631787 - /accumulo/site/trunk/content/downloads/index.mdtext Date: Tue, 14 Oct 2014 15:24:41 -0000 To: commits@accumulo.apache.org From: elserj@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20141014152441.9705723889BB@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: elserj Date: Tue Oct 14 15:24:41 2014 New Revision: 1631787 URL: http://svn.apache.org/r1631787 Log: Use jquery instead of the onClick attribute 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=1631787&r1=1631786&r2=1631787&view=diff ============================================================================== --- accumulo/site/trunk/content/downloads/index.mdtext (original) +++ accumulo/site/trunk/content/downloads/index.mdtext Tue Oct 14 15:24:41 2014 @@ -23,28 +23,20 @@ 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. */ -var trackOutboundLink = function(url) { - var hrefUrl = this.target.getAttribute('href') +$('.download_tarball').click(function(event) { + var hrefUrl = event.target.getAttribute('href') if (event.ctrlKey || event.shiftKey || event.metaKey || event.which == 2) { var newWin = true;} if (newWin) { - ga('send', 'event', 'outbound', 'click', url, {'nonInteraction': 1}); + ga('send', 'event', 'outbound', 'click', $(this).id, {'nonInteraction': 1}); return true; } else { - ga('send', 'event', 'outbound', 'click', url, {'hitCallback': + ga('send', 'event', 'outbound', 'click', $(this).id, {'hitCallback': 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 = ''; @@ -115,7 +107,7 @@ For convenience, [MD5][MD5SUM_161] and [ - +
Generic Binariesaccumulo-1.6.1-bin.tar.gzaccumulo-1.6.1-bin.tar.gz ASC