[yelp-xsl] Put javacript for mousehovers in a <script> element



commit 4a3333106f31b3f95a933a14c8ce81ce4150d1a7
Author: Frédéric Péters <fpeters 0d be>
Date:   Wed Apr 6 11:06:36 2011 +0530

    Put javacript for mousehovers in a <script> element

 xslt/mallard/html/mal2html-page.xsl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index d3a90f5..c760699 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -1352,7 +1352,7 @@ span.status-review { background-color: </xsl:text>
 <!--%# html.js.mode -->
 <xsl:template mode="html.js.mode" match="mal:page">
   <xsl:call-template name="mal2html.facets.js"/>
-  <xsl:text>
+  <script type="text/javascript" language="javascript"><xsl:text><![CDATA[
 $(document).ready(function () {
   $('div.mouseovers').each(function () {
     var contdiv = $(this);
@@ -1377,7 +1377,7 @@ $(document).ready(function () {
     });
   });
 });
-  </xsl:text>
+]]></xsl:text></script>
 </xsl:template>
 
 </xsl:stylesheet>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]