diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2008-03-28 17:02:18 +0100 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2008-03-28 17:02:18 +0100 |
commit | 144f16a71f7289bb891c52995061aee21e3e08f9 (patch) | |
tree | b8cd9492463dad0cb0dbe751145e45a8fd54b53b /themes/default | |
parent | af0be8f9546fb5dec947be33e465bb6d9e85d0a7 (diff) |
remove autocomplete and use autosuggest instead
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
Diffstat (limited to 'themes/default')
-rw-r--r-- | themes/default/templates/credits.tpl | 1 | ||||
-rw-r--r-- | themes/default/templates/header.tpl | 11 | ||||
-rw-r--r-- | themes/default/templates/search.tpl | 13 |
3 files changed, 15 insertions, 10 deletions
diff --git a/themes/default/templates/credits.tpl b/themes/default/templates/credits.tpl index f1c9912..d0e6294 100644 --- a/themes/default/templates/credits.tpl +++ b/themes/default/templates/credits.tpl @@ -12,6 +12,7 @@ Most icons from <a href="http://www.silvestre.com.ar/">Silvestre Herrera's</a> Nuovo icon kit. <br /> <a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox2</a> + <a href="http://www.brandspankingnew.net/archive/2007/02/ajax_auto_suggest_v2.html">Ajax Auto Suggest</a> <hr /> F-Spot database version: {$db_version} </div> diff --git a/themes/default/templates/header.tpl b/themes/default/templates/header.tpl index f98705a..72257df 100644 --- a/themes/default/templates/header.tpl +++ b/themes/default/templates/header.tpl @@ -15,14 +15,7 @@ <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> + <script src="autosuggest/js/bsn.AutoSuggest_2.1.3_comp.js"></script> + <link rel="stylesheet" href="autosuggest/css/autosuggest_inquisitor.css" type="text/css" media="screen" charset="utf-8" /> { /if } </head> diff --git a/themes/default/templates/search.tpl b/themes/default/templates/search.tpl index e6baaa9..ee9a7e1 100644 --- a/themes/default/templates/search.tpl +++ b/themes/default/templates/search.tpl @@ -8,7 +8,18 @@ <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&search=[S]&length=10" /> + <input type="text" name="searchfor_tag" id="searchfor_tag" value="{$searchfor_tag}" size="15" acdropdown="true" autocomplete_list="url:rpc.php?action=getxmltaglist&search=[S]&length=10" /> + { literal } + <script type="text/javascript"> + var options = { + script: "rpc.php?action=getxmltaglist&", + varname: "search", + json: false, + maxresults: 15 + }; + var as = new bsn.AutoSuggest('searchfor_tag', options); + </script> + { /literal } { else } <input type="text" name="searchfor_tag" value="{$searchfor_tag}" size="15" /> { /if } |