Pass along the 'box' parameter to the pretty autocompleter.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 27 Nov 2009 20:54:12 +0000 (15:54 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 27 Nov 2009 20:54:37 +0000 (15:54 -0500)
framework/Ajax/lib/Horde/Ajax/Imple/AutoCompleter.php

index 447a43f..4c99f74 100644 (file)
@@ -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'])) {