OnSelect Callback now needs to return the string to display
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 7 Nov 2009 21:04:06 +0000 (16:04 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 7 Nov 2009 21:04:06 +0000 (16:04 -0500)
ansel/lib/Ajax/Imple/LocationAutoCompleter.php

index f3eadd5..fea823d 100644 (file)
@@ -20,7 +20,7 @@ class Ansel_Ajax_Imple_LocationAutoCompleter extends Horde_Ajax_Imple_AutoComple
         $ret = array(
             'params' => $js_params,
             'raw_params' => array(
-                'onSelect' => 'function (v) { ' . $this->_params['map'] . '.ll = Ansel.ajax.locationAutoCompleter.geocache[v]; }',
+                'onSelect' => 'function (v) { ' . $this->_params['map'] . '.ll = Ansel.ajax.locationAutoCompleter.geocache[v];return v;}',
                 'onShow' => 'function (e) { if (!e.size()) ' . $this->_params['map'] . '.ll = null; }'
             ),
             'var' => "Ansel.ajax['locationAutoCompleter']"