[yelp] yelp-common.xsl: Do custom JS right, changes from yelp-xsl
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp] yelp-common.xsl: Do custom JS right, changes from yelp-xsl
- Date: Sat, 16 Apr 2011 18:34:34 +0000 (UTC)
commit 7cb2fda21c2d29cbbb93dfc2b24488feba22747d
Author: Shaun McCance <shaunm gnome org>
Date: Sat Apr 16 13:54:01 2011 -0400
yelp-common.xsl: Do custom JS right, changes from yelp-xsl
stylesheets/yelp-common.xsl.in | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/stylesheets/yelp-common.xsl.in b/stylesheets/yelp-common.xsl.in
index 455fcd7..ef27851 100644
--- a/stylesheets/yelp-common.xsl.in
+++ b/stylesheets/yelp-common.xsl.in
@@ -94,7 +94,10 @@ div.body {
<!-- == html.js.custom == -->
<xsl:template name="html.js.custom">
<script type="text/javascript" language="javascript" src="@DATADIR@/jquery-ui-1.8.custom.min.js"/>
-<script type="text/javascript" language="javascript">
+</xsl:template>
+
+<!-- == html.js.content.custom == -->
+<xsl:template name="html.js.content.custom">
<xsl:text>
$(document).ready (function () {
if (location.hash != '') {
@@ -111,7 +114,6 @@ $(document).ready (function () {
}
});
</xsl:text>
-</script>
</xsl:template>
</xsl:stylesheet>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]