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:19:43 UTC

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

Author: marcus
Date: Fri Mar 14 20:19:43 2014
New Revision: 1577689

URL: http://svn.apache.org/r1577689
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/test/download.js

Modified: openoffice/ooo-site/trunk/content/download/test/download.js
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/test/download.js?rev=1577689&r1=1577688&r2=1577689&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/download.js (original)
+++ openoffice/ooo-site/trunk/content/download/test/download.js Fri Mar 14 20:19:43 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() ) {