[library-web] always include autocomplete js and css on home page
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] always include autocomplete js and css on home page
- Date: Wed, 6 Apr 2011 13:40:45 +0000 (UTC)
commit e93bf15634ac0ac605c810f0ad97d9af9d1e8319
Author: Frédéric Péters <fpeters 0d be>
Date: Wed Apr 6 19:09:28 2011 +0530
always include autocomplete js and css on home page
data/xslt/dev_indexes.xsl | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/data/xslt/dev_indexes.xsl b/data/xslt/dev_indexes.xsl
index 7e377c0..1e3b515 100644
--- a/data/xslt/dev_indexes.xsl
+++ b/data/xslt/dev_indexes.xsl
@@ -596,13 +596,6 @@ doctype-system="http://www.w3.org/TR/html4/loose.dtd">
<xsl:with-param name="channel" select="@channel"/>
</xsl:call-template>
<script type="text/javascript" src="/js/strings.js" />
- <xsl:if test="$filename = 'references'">
- <xsl:if test="$libgo.dbm_support">
- <link rel="stylesheet" type="text/css" href="/skin/jquery.autocomplete.css"/>
- <script type="text/javascript" src="/js/jquery.js" />
- <script type="text/javascript" src="/js/jquery.autocomplete.js" />
- </xsl:if>
- </xsl:if>
</head>
<body class="with-star">
<xsl:call-template name="libgo.header">
@@ -713,8 +706,10 @@ div.body-sidebar { width: 100%; }
</xsl:text>
<script type="text/javascript" src="/js/strings.js" />
<link rel="stylesheet" type="text/css" media="all" href="/skin/960_24_col.css" />
+ <link rel="stylesheet" type="text/css" href="/skin/jquery.autocomplete.css"/>
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/jquery.jcarousel.min.js"></script>
+ <script type="text/javascript" src="/js/jquery.autocomplete.js"></script>
</head>
<body class="with-star">
<xsl:call-template name="libgo.header">
@@ -817,7 +812,7 @@ div.body-sidebar { width: 100%; }
</label><input type="text" value="" name="q" id="s" placeholder="Search" />
</div></form>
<script type="text/javascript">
-$('#s').autocomplete('/symbols/lookup/',
+jQuery('#s').autocomplete('/symbols/lookup/',
{ minChars:3, matchSubset:1, matchContains:1, cacheLength:10,
selectOnly:1, rowsLimit:25 });
</script>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]