You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ma...@apache.org on 2014/03/14 21:20:19 UTC

svn commit: r1577690 - /openoffice/ooo-site/trunk/content/download/download.js

Author: marcus
Date: Fri Mar 14 20:20:18 2014
New Revision: 1577690

URL: http://svn.apache.org/r1577690
Log:
Set a default value as release mode if no value was used to call 'getLink()' in the 'index.html'

Modified:
    openoffice/ooo-site/trunk/content/download/download.js

Modified: openoffice/ooo-site/trunk/content/download/download.js
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/download.js?rev=1577690&r1=1577689&r2=1577690&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/download.js (original)
+++ openoffice/ooo-site/trunk/content/download/download.js Fri Mar 14 20:20:18 2014
@@ -124,6 +124,10 @@ function hasMirrorLink() {
 function getLink( rel_mode ) {
 	var chk_link = "";
 
+	// If no release mode was given, assume it's about the stable release
+	if ( rel_mode == undefined )
+		rel_mode = 0;
+
 	getLanguage();
 	getPlatform( rel_mode );
 	if ( hasMirrorLink() ) {