Remove stray double quote, correctly pass value array for the local autocompleter.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 29 Oct 2009 22:24:59 +0000 (18:24 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 29 Oct 2009 22:24:59 +0000 (18:24 -0400)
Still no autocompletion, but we're getting close, I can smell it...

ansel/lib/Ajax/Imple/LocationAutoCompleter.php

index 875c504..b69883f 100644 (file)
@@ -14,7 +14,7 @@ class Ansel_Ajax_Imple_LocationAutoCompleter extends Horde_Ajax_Imple_AutoComple
 {
     protected function _attach($js_params)
     {
-        $js_params['indicator'] = $this->_params['triggerId'] . '_loading_img"';
+        $js_params['indicator'] = $this->_params['triggerId'] . '_loading_img';
         $js_params['onSelect'] = 1;
         $js_params['onShow'] = 1;
         $js_params['tokens'] = '';
@@ -42,11 +42,10 @@ class Ansel_Ajax_Imple_LocationAutoCompleter extends Horde_Ajax_Imple_AutoComple
         if (!empty($_SESSION['ansel']['ajax_locationac'])) {
             $ret['ajax'] = 'LocationAutoCompleter';
         } else {
-            $ret['browser'] = 'LocationAutoCompleter';
             if (empty($results)) {
                 $results = $GLOBALS['ansel_storage']->searchLocations();
             }
-            $ret['list'] = Horde_Serialize::serialize($results, Horde_Serialize::JSON);
+            $ret['browser'] = Horde_Serialize::serialize($results, Horde_Serialize::JSON);
         }
 
         return $ret;