From 3784f25a89e3e5b0181d7ac80502d8922a233cd6 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Thu, 29 Oct 2009 18:24:59 -0400 Subject: [PATCH] Remove stray double quote, correctly pass value array for the local autocompleter. Still no autocompletion, but we're getting close, I can smell it... --- ansel/lib/Ajax/Imple/LocationAutoCompleter.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ansel/lib/Ajax/Imple/LocationAutoCompleter.php b/ansel/lib/Ajax/Imple/LocationAutoCompleter.php index 875c5046e..b69883f7e 100644 --- a/ansel/lib/Ajax/Imple/LocationAutoCompleter.php +++ b/ansel/lib/Ajax/Imple/LocationAutoCompleter.php @@ -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; -- 2.11.0