incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r814424 - in /websites/staging/ooo-site/trunk: cgi-bin/ content/ content/scripts/entourage.js
Date Wed, 25 Apr 2012 16:23:45 GMT
Author: buildbot
Date: Wed Apr 25 16:23:45 2012
New Revision: 814424

Log:
Staging update by buildbot for openofficeorg

Modified:
    websites/staging/ooo-site/trunk/cgi-bin/   (props changed)
    websites/staging/ooo-site/trunk/content/   (props changed)
    websites/staging/ooo-site/trunk/content/scripts/entourage.js

Propchange: websites/staging/ooo-site/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed Apr 25 16:23:45 2012
@@ -1 +1 @@
-1330269
+1330388

Propchange: websites/staging/ooo-site/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed Apr 25 16:23:45 2012
@@ -1 +1 @@
-1330269
+1330388

Modified: websites/staging/ooo-site/trunk/content/scripts/entourage.js
==============================================================================
--- websites/staging/ooo-site/trunk/content/scripts/entourage.js (original)
+++ websites/staging/ooo-site/trunk/content/scripts/entourage.js Wed Apr 25 16:23:45 2012
@@ -7,6 +7,7 @@
  * Learn More: http://techoctave.com/c7/posts/58-entourage-js-automatic-download-tracking-for-asynchronous-google-analytics
  * 
  * 2012-04-24 Mod by robweir to whitelist additional file extensions as used in AOO project
+ * 2012-04-25 Mod by robweir to remove trailing "/download" from SourceForge file names,
a hack we can hopefully remove someday
  */
 
 /*jshint strict:false */
@@ -23,6 +24,10 @@ var entourage = new (function() {
 
 		//Removes the query after the file pathname (if one exists)
 		pathname = pathname.substring(0, (pathname.indexOf("?") === -1) ? pathname.length : pathname.indexOf("?"));
+      
+        //Remove trailing /download
+		if (/\/download$/.test(pathname))
+			pathname = pathname.substring(0, pathname.length-"/download".length);
 
 		//Removes everything before the last slash in the path
 		pathname = pathname.substring(pathname.lastIndexOf("/") + 1, pathname.length);



Mime
View raw message