You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by bu...@apache.org on 2013/10/12 10:28:11 UTC

svn commit: r882263 - in /websites/staging/ooo-site/trunk: cgi-bin/ content/ content/download/download.js

Author: buildbot
Date: Sat Oct 12 08:28:11 2013
New Revision: 882263

Log:
Staging update by buildbot for ooo-site

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

Propchange: websites/staging/ooo-site/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sat Oct 12 08:28:11 2013
@@ -1 +1 @@
-1531512
+1531513

Propchange: websites/staging/ooo-site/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sat Oct 12 08:28:11 2013
@@ -1 +1 @@
-1531512
+1531513

Modified: websites/staging/ooo-site/trunk/content/download/download.js
==============================================================================
--- websites/staging/ooo-site/trunk/content/download/download.js (original)
+++ websites/staging/ooo-site/trunk/content/download/download.js Sat Oct 12 08:28:11 2013
@@ -204,6 +204,24 @@ function getPlatform() {
 	var ua	= navigator.userAgent.toLowerCase();
 	var av	= navigator.appVersion.toLowerCase();
 
+	// Add ECMA262-5 Array methods if not supported natively
+	// To workaround that MSIE 8 and older do not support this function
+	if ( !( 'indexOf' in Array.prototype ) ) {
+	  Array.prototype.indexOf= function( find, i /*opt*/ ) {
+	    if ( i === undefined )
+	      i = 0;
+	    if ( i < 0 )
+	      i+= this.length;
+	    if ( i < 0 )
+	      i = 0;
+	    for ( var n = this.length; i < n; i++ ) {
+	      if ( i in this && this[ i ] === find )
+		return i;
+	    }
+	    return -1;
+	  };
+	}
+
 	if ( os ) {
 
 	  // Recognized but not supported platforms / OS, set $UI_PLATFORM to show it to the user