From: Michael J. Rubinsky Date: Sat, 7 Nov 2009 21:04:06 +0000 (-0500) Subject: OnSelect Callback now needs to return the string to display X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=0b0e851d1f543114a44ba3e53c4fe32267cbe932;p=horde.git OnSelect Callback now needs to return the string to display --- diff --git a/ansel/lib/Ajax/Imple/LocationAutoCompleter.php b/ansel/lib/Ajax/Imple/LocationAutoCompleter.php index f3eadd51d..fea823d3e 100644 --- a/ansel/lib/Ajax/Imple/LocationAutoCompleter.php +++ b/ansel/lib/Ajax/Imple/LocationAutoCompleter.php @@ -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']"