Mailing List Archive

svn commit: r1537818 - in /forrest/trunk: main/webapp/skins/common/scripts/fontsize.js main/webapp/skins/pelt/xslt/html/site-to-xhtml.xsl site-author/status.xml
Author: crossley
Date: Fri Nov 1 04:27:54 2013
New Revision: 1537818

URL: http://svn.apache.org/r1537818
Log:
Removed the "body onload=init()" from the internal xml, which was a superfluous function used by fontsize.js

Modified:
forrest/trunk/main/webapp/skins/common/scripts/fontsize.js
forrest/trunk/main/webapp/skins/pelt/xslt/html/site-to-xhtml.xsl
forrest/trunk/site-author/status.xml

Modified: forrest/trunk/main/webapp/skins/common/scripts/fontsize.js
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/skins/common/scripts/fontsize.js?rev=1537818&r1=1537817&r2=1537818&view=diff
==============================================================================
--- forrest/trunk/main/webapp/skins/common/scripts/fontsize.js (original)
+++ forrest/trunk/main/webapp/skins/common/scripts/fontsize.js Fri Nov 1 04:27:54 2013
@@ -14,10 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-function init()
-{ //embedded in the doc
- //ndeSetTextSize();
-}

function checkBrowser(){
if (!document.getElementsByTagName){

Modified: forrest/trunk/main/webapp/skins/pelt/xslt/html/site-to-xhtml.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/skins/pelt/xslt/html/site-to-xhtml.xsl?rev=1537818&r1=1537817&r2=1537818&view=diff
==============================================================================
--- forrest/trunk/main/webapp/skins/pelt/xslt/html/site-to-xhtml.xsl (original)
+++ forrest/trunk/main/webapp/skins/pelt/xslt/html/site-to-xhtml.xsl Fri Nov 1 04:27:54 2013
@@ -110,7 +110,7 @@ footer, searchbar, css etc. As input, i
<!--+
|HTML-body
+-->
- <body onload="init()">
+ <body>
<xsl:call-template name="carry-body-attribs"/>
<script type="text/javascript">ndeSetTextSize();</script>
<!--+Site structure

Modified: forrest/trunk/site-author/status.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/site-author/status.xml?rev=1537818&r1=1537817&r2=1537818&view=diff
==============================================================================
--- forrest/trunk/site-author/status.xml (original)
+++ forrest/trunk/site-author/status.xml Fri Nov 1 04:27:54 2013
@@ -154,6 +154,12 @@
<link href="site:upgrading_010">upgrading to v0.10-dev</link>
</action>
<!-- 2013-11 -->
+ <action context="code" type="update" dev="DC">
+ For "skins", removed the "body onload=init()" from the internal xml.
+ This was used by the fontsize.js script, which actually had
+ its function contents commented-out and so was superfluous.
+ It was preventing project scripts from using "onload".
+ </action>
<!-- 2013-10 -->
<action context="code" type="update" dev="DC">
Enabled "link" and "script" elements in "header" for the document-v20 DTD.