summaryrefslogtreecommitdiffstats
path: root/themes/default
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2008-03-27 22:59:06 +0100
committerAndreas Unterkircher <unki@netshadow.at>2008-03-27 22:59:06 +0100
commitaf0be8f9546fb5dec947be33e465bb6d9e85d0a7 (patch)
tree46fa7f026d861e54753e78ac8265563b0ddfca36 /themes/default
parent2b589908f4624b0ee41217f21d5b0b7cb383d38c (diff)
issue111, first try of auto completion for tag search box
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
Diffstat (limited to 'themes/default')
-rw-r--r--themes/default/templates/header.tpl11
-rw-r--r--themes/default/templates/search.tpl4
2 files changed, 15 insertions, 0 deletions
diff --git a/themes/default/templates/header.tpl b/themes/default/templates/header.tpl
index c233bb3..f98705a 100644
--- a/themes/default/templates/header.tpl
+++ b/themes/default/templates/header.tpl
@@ -14,4 +14,15 @@
<script type="text/javascript" src="lightbox2/js/lightbox.js"></script>
<link rel="stylesheet" href="lightbox2/css/lightbox.css" type="text/css" media="screen" />
{ /if }
+ { if ! $use_autocomplete }
+ <link rel="stylesheet" href="autocomplete/css/dropdown.css" type="text/css" media="screen" />
+ <script src="autocomplete/js/modomevent3.js"></script>
+ <script src="autocomplete/js/modomt.js"></script>
+ <script src="autocomplete/js/modomext.js"></script>
+ <script src="autocomplete/js/getobject2.js"></script>
+ <script src="autocomplete/js/xmlextras.js"></script>
+ <script src="autocomplete/js/acdropdown.js"></script>
+ <script src="autocomplete/js/ieselect.js"></script>
+ <script language="javascript" src="autocomplete/js/shCore.js" ></script>
+ { /if }
</head>
diff --git a/themes/default/templates/search.tpl b/themes/default/templates/search.tpl
index 10800e1..e6baaa9 100644
--- a/themes/default/templates/search.tpl
+++ b/themes/default/templates/search.tpl
@@ -7,7 +7,11 @@
<tr>
<td>Tag:</td>
<td>
+ { if ! $use_autocomplete }
+ <input type="text" name="searchfor_tag" value="{$searchfor_tag}" size="15" acdropdown="true" autocomplete_list="url:rpc.php?action=getxmltaglist&amp;search=[S]&amp;length=10" />
+ { else }
<input type="text" name="searchfor_tag" value="{$searchfor_tag}" size="15" />
+ { /if }
</td>
<td>
<input type="image" class="submit" src="resources/doit.png" alt="start search" title="start search" onclick="click(this);" />