issue111, auto-completion can now be enabled/disabled via config option
authorAndreas Unterkircher <unki@netshadow.at>
Sat, 29 Mar 2008 06:55:25 +0000 (07:55 +0100)
committerAndreas Unterkircher <unki@netshadow.at>
Sat, 29 Mar 2008 06:55:25 +0000 (07:55 +0100)
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
phpfspot_cfg.php.dist
phpfspot_tmpl.php
themes/default/templates/header.tpl
themes/default/templates/search.tpl

index 3583560ff57be4883441f6c4b7f1bcd58b1759de..f002aebc14984c334d25fe31fc56222305cc153e 100644 (file)
@@ -89,6 +89,11 @@ class PHPFSPOT_CFG {
    */
    var $use_lightbox = true;
 
    */
    var $use_lightbox = true;
 
+   /* Use Ajax Auto Completion for tag search. Maybe, if you have a slow
+      connectivity for the server, it's a good idea to turn it off.
+   */
+   var $use_autocomplete = true;
+
    /* logging = display || errorlog || logfile */
    var $logging = "display";
 
    /* logging = display || errorlog || logfile */
    var $logging = "display";
 
index 52c983e971aedd400487a372701eb678e7187e5d..3fdf2ac2626df5c356bab3aefc5443400f3b69a8 100644 (file)
@@ -40,6 +40,8 @@ class PHPFSPOT_TMPL extends Smarty {
 
       if(isset($parent->cfg->use_lightbox) && $parent->cfg->use_lightbox == true)
          $this->assign('use_lightbox', 'true');
 
       if(isset($parent->cfg->use_lightbox) && $parent->cfg->use_lightbox == true)
          $this->assign('use_lightbox', 'true');
+      if(isset($parent->cfg->use_autocomplete) && $parent->cfg->use_autocomplete == true)
+         $this->assign('use_autocomplete', 'true');
 
    } // __construct()
 
 
    } // __construct()
 
index 72257df87bea2178af0aa5a96d9f94b0da3e9d0f..e946a5bc7e00be25e217a5c5580744aa6533ff38 100644 (file)
@@ -14,7 +14,7 @@
   <script type="text/javascript" src="lightbox2/js/lightbox.js"></script>
   <link rel="stylesheet" href="lightbox2/css/lightbox.css" type="text/css" media="screen" />
   { /if }
   <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 }
+  { if $use_autocomplete }
   <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 }
   <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 }
index ee9a7e1282f043f1571d75fee2bc37bf40a59796..f983c40b45ea168b4f90887965d47afe491ecb6d 100644 (file)
@@ -7,7 +7,7 @@
  <tr>
   <td>Tag:</td>
   <td>
  <tr>
   <td>Tag:</td>
   <td>
-   { if $use_autocomplete }
+   { if $use_autocomplete }
    <input type="text" name="searchfor_tag" id="searchfor_tag" value="{$searchfor_tag}" size="15" acdropdown="true" autocomplete_list="url:rpc.php?action=getxmltaglist&amp;search=[S]&amp;length=10" />
    { literal }
    <script type="text/javascript">
    <input type="text" name="searchfor_tag" id="searchfor_tag" value="{$searchfor_tag}" size="15" acdropdown="true" autocomplete_list="url:rpc.php?action=getxmltaglist&amp;search=[S]&amp;length=10" />
    { literal }
    <script type="text/javascript">