Author: antonio
Date: Sun Nov 28 21:07:18 2004
New Revision: 106886

URL: http://svn.apache.org/viewcvs?view=rev&rev=106886
Log:
Avoid potential conflicts with other JS functions names
Modified:
   
cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/samples/sitemap-viewer/transforms/xml2html.xslt
   cocoon/branches/BRANCH_2_1_X/src/webapp/resources/scripts/prettycontent.js
   cocoon/branches/BRANCH_2_1_X/src/webapp/stylesheets/system/xml2html.xslt

Modified: 
cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/samples/sitemap-viewer/transforms/xml2html.xslt
Url: 
http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/samples/sitemap-viewer/transforms/xml2html.xslt?view=diff&rev=106886&p1=cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/samples/sitemap-viewer/transforms/xml2html.xslt&r1=106885&p2=cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/samples/sitemap-viewer/transforms/xml2html.xslt&r2=106886
==============================================================================
--- 
cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/samples/sitemap-viewer/transforms/xml2html.xslt
  (original)
+++ 
cocoon/branches/BRANCH_2_1_X/src/blocks/scratchpad/samples/sitemap-viewer/transforms/xml2html.xslt
  Sun Nov 28 21:07:18 2004
@@ -69,7 +69,7 @@
    <!-- match comments -->
    <xsl:template match="comment()">
       <DIV class="e">
-         <SPAN class="b" onclick="toggle(event)">-</SPAN>
+         <SPAN class="b" onclick="xml2html.toggle(event)">-</SPAN>
          <SPAN class="m">
             <xsl:text>&lt;!--</xsl:text>
          </SPAN>
@@ -119,7 +119,7 @@
    <xsl:template match="*[node()]">
       <DIV class="e">
          <DIV>
-            <SPAN class="b" onclick="toggle(event)">-</SPAN>
+            <SPAN class="b" onclick="xml2html.toggle(event)">-</SPAN>
             <SPAN class="m">&lt;</SPAN>
             <SPAN class="en">
                <xsl:value-of select="name(.)"/>
@@ -180,7 +180,7 @@
    <xsl:template match="*[*]" priority="20">
       <DIV class="e">
          <DIV>
-            <SPAN class="b" onclick="toggle(event)">-</SPAN>
+            <SPAN class="b" onclick="xml2html.toggle(event)">-</SPAN>
             <SPAN class="m">&lt;</SPAN>
             <SPAN class="en">
                <xsl:value-of select="name(.)"/>

Modified: 
cocoon/branches/BRANCH_2_1_X/src/webapp/resources/scripts/prettycontent.js
Url: 
http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/webapp/resources/scripts/prettycontent.js?view=diff&rev=106886&p1=cocoon/branches/BRANCH_2_1_X/src/webapp/resources/scripts/prettycontent.js&r1=106885&p2=cocoon/branches/BRANCH_2_1_X/src/webapp/resources/scripts/prettycontent.js&r2=106886
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/webapp/resources/scripts/prettycontent.js  
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/webapp/resources/scripts/prettycontent.js  
Sun Nov 28 21:07:18 2004
@@ -13,7 +13,7 @@
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
-function toggle(event) {
+function xml2html.toggle(event) {
 
     var mark;
     if (event.srcElement) {

Modified: 
cocoon/branches/BRANCH_2_1_X/src/webapp/stylesheets/system/xml2html.xslt
Url: 
http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/webapp/stylesheets/system/xml2html.xslt?view=diff&rev=106886&p1=cocoon/branches/BRANCH_2_1_X/src/webapp/stylesheets/system/xml2html.xslt&r1=106885&p2=cocoon/branches/BRANCH_2_1_X/src/webapp/stylesheets/system/xml2html.xslt&r2=106886
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/webapp/stylesheets/system/xml2html.xslt    
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/webapp/stylesheets/system/xml2html.xslt    
Sun Nov 28 21:07:18 2004
@@ -65,7 +65,7 @@
    <!-- match comments -->
    <xsl:template match="comment()">
       <DIV class="e">
-         <SPAN class="b" onclick="toggle(event)">-</SPAN>
+         <SPAN class="b" onclick="xml2html.toggle(event)">-</SPAN>
          <SPAN class="m">&lt;!--</SPAN>
          <SPAN class="c">
             <PRE>
@@ -138,7 +138,7 @@
    <xsl:template match="*[node()]">
       <DIV class="e">
          <DIV>
-            <SPAN class="b" onclick="toggle(event)">-</SPAN>
+            <SPAN class="b" onclick="xml2html.toggle(event)">-</SPAN>
             <SPAN class="m">&lt;</SPAN>
             <SPAN class="en">
                <xsl:value-of select="name(.)"/>

Reply via email to