You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ks...@apache.org on 2012/05/03 01:14:54 UTC
svn commit: r1333247 -
/incubator/ooo/ooo-site/trunk/content/download/test/index_new_dl.html
Author: kschenk
Date: Wed May 2 23:14:53 2012
New Revision: 1333247
URL: http://svn.apache.org/viewvc?rev=1333247&view=rev
Log:
kls -- thank you Dave!
Modified:
incubator/ooo/ooo-site/trunk/content/download/test/index_new_dl.html
Modified: incubator/ooo/ooo-site/trunk/content/download/test/index_new_dl.html
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/download/test/index_new_dl.html?rev=1333247&r1=1333246&r2=1333247&view=diff
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/download/test/index_new_dl.html (original)
+++ incubator/ooo/ooo-site/trunk/content/download/test/index_new_dl.html Wed May 2 23:14:53 2012
@@ -46,22 +46,23 @@
<script type="text/javascript">
<!--
LINK = getLink( VERSION, MIRROR, SCHEMA );
- var myURLlink = "<a href=\"" + LINK + "\"" + " title = \"" + LINK + " \" >";
- //alert ("myURLlink :" + myURLlink);
-
- document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','" + LINK + "');"
- + "return false;\">" );
-
+ // normal processing to simply quoting issues -- keep original
+ var newLINK = "<a href=\"" + LINK + "\"" + " title = \"" + LINK + " \" >";
+
//alert ("hasMirroLink: " + hasMirrorLink() );
if ( hasMirrorLink() ) {
- document.write( "<h2>" + myURLlink+ "Download Apache OpenOffice " + VERSION + "</a></h2>"
- + "<p>" + myURLlink + "Click to start downloading the most recent version for "
+ document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','" + newLINK + "');"
+ + "return false;\">" );
+ document.write( "<h2>" + newLINK+ "Download Apache OpenOffice " + VERSION + "</a></h2>"
+ + "<p>" + newLINK + "Click to start downloading the most recent version for "
+ getPlatform(SCHEMA) + " and " + getLanguage() + "."
+ "<br/></p>" );
} else {
- <!-- dump SF extension -->
+ <!-- dump SF extension if no mirror link -->
alert("link before replacment: " + LINK);
var newLINK = LINK.replace(/\/download$/,"");
+ document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','" + newLINK + "');"
+ + "return false;\">" );
alert ("link after replacment: " + newLINK);
<!-- route everybody to somplace else ??? -->
document.write( "<h2><a href='" + newLINK + "' title='" + newLINK + "'>Download Apache OpenOffice</a></h2>"