From: Michael J. Rubinsky Date: Fri, 27 Nov 2009 20:54:12 +0000 (-0500) Subject: Pass along the 'box' parameter to the pretty autocompleter. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=bf94462a80763cec1dc795e0f375790f9bf5dafc;p=horde.git Pass along the 'box' parameter to the pretty autocompleter. --- diff --git a/framework/Ajax/lib/Horde/Ajax/Imple/AutoCompleter.php b/framework/Ajax/lib/Horde/Ajax/Imple/AutoCompleter.php index 447a43f06..4c99f740b 100644 --- a/framework/Ajax/lib/Horde/Ajax/Imple/AutoCompleter.php +++ b/framework/Ajax/lib/Horde/Ajax/Imple/AutoCompleter.php @@ -55,13 +55,15 @@ abstract class Horde_Ajax_Imple_AutoCompleter extends Horde_Ajax_Imple_Base 'score' => 1 ), $config['params']); } elseif (isset($config['pretty'])) { + Horde::addScriptFile('prettyautocomplete.js', 'horde'); $func = 'PrettyAutocompleter'; $config['params'] = array_merge(array( 'boxClass' => 'hordeACBox kronolithLongField', 'trigger' => $this->_params['triggerId'], 'uri' => $this->_getUrl($config['pretty'], $GLOBALS['registry']->getApp()), - 'URI_IMG_HORDE' => $GLOBALS['registry']->getImageDir('horde') + 'URI_IMG_HORDE' => $GLOBALS['registry']->getImageDir('horde'), + 'box' => !empty($this->_params['box']) ? $this->_params['box'] : '' ), $config['params']); if (!empty($this->_params['existing'])) {