allow passing the domid for triggercontainer
authorMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 9 Mar 2010 18:46:57 +0000 (13:46 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 9 Mar 2010 18:46:57 +0000 (13:46 -0500)
framework/Ajax/lib/Horde/Ajax/Imple/AutoCompleter.php

index a075ff9..9513338 100644 (file)
@@ -27,6 +27,10 @@ abstract class Horde_Ajax_Imple_AutoCompleter extends Horde_Ajax_Imple_Base
             $params['triggerId'] = $this->_randomid();
         }
 
+        if (empty($params['triggerContainer'])) {
+            $params['triggerContainer'] = $this->_randomid();
+        }
+
         parent::__construct($params);
     }
 
@@ -61,6 +65,7 @@ abstract class Horde_Ajax_Imple_AutoCompleter extends Horde_Ajax_Imple_Base
             $config['params'] = array_merge(array(
                 'boxClass' => 'hordeACBox kronolithLongField',
                 'trigger' => $this->_params['triggerId'],
+                'triggerContainer' => $this->_params['triggerContainer'],
                 'uri' => (string)$this->_getUrl($config['pretty'], $GLOBALS['registry']->getApp()),
                 'URI_IMG_HORDE' => (string)Horde_Themes::img(null, 'horde'),
                 'box' => !empty($this->_params['box']) ? $this->_params['box'] : ''