You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2005/11/02 12:25:07 UTC
svn commit: r330234 -
/myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/util/AddResource.java
Author: mmarinschek
Date: Wed Nov 2 03:24:47 2005
New Revision: 330234
URL: http://svn.apache.org/viewcvs?rev=330234&view=rev
Log:
ADDITIONAL_JAVASCRIPT_TO_BODY_TAG is inserted the right way into body tag
Modified:
myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/util/AddResource.java
Modified: myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/util/AddResource.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/util/AddResource.java?rev=330234&r1=330233&r2=330234&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/util/AddResource.java (original)
+++ myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/util/AddResource.java Wed Nov 2 03:24:47 2005
@@ -520,7 +520,9 @@
{
if (ADDITIONAL_JAVASCRIPT_TO_BODY_TAG != null)
{
- originalResponse.insert( bodyInsertPosition-1, " "+ADDITIONAL_JAVASCRIPT_TO_BODY_TAG + "\" " );
+ originalResponse.insert( bodyInsertPosition-2, " "+ADDITIONAL_JAVASCRIPT_TO_BODY_TAG + "\" " );
+
+ ADDITIONAL_JAVASCRIPT_TO_BODY_TAG = null;
}
}