Don't assume the dom id of the results node should have the
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 31 Jan 2009 17:21:46 +0000 (12:21 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 31 Jan 2009 17:21:46 +0000 (12:21 -0500)
resource id tacked on at the end.

kronolith/lib/Imple/TagAutoCompleter.php
kronolith/templates/panel.inc

index 09e572c..b9537ba 100644 (file)
@@ -25,7 +25,7 @@ class Kronolith_Imple_TagAutoCompleter extends Kronolith_Imple
         if (!count($params)) {
             return;
         }
-        $params['triggerId'] = $params['triggerId'] . '_' . $params['id'];
+        //$params['triggerId'] = $params['triggerId'] . '_' . $params['id'];
         if (empty($params['resultsId'])) {
             $params['resultsId'] = $params['triggerId'] . '_results';
         }
index 126ca8f..a936eba 100644 (file)
@@ -74,7 +74,7 @@ $tagger = new Kronolith_Tagger();
       <div id="newtags-input_<?php echo $id?>_results" class="autocomplete"></div>
       <span id="newtags-input_<?php echo $id?>_loading_img" style="display:none;"><?php echo Horde::img('loading.gif', _("Loading...")) ?></span>
      <?php
-      Kronolith_Imple::factory('TagAutoCompleter', array('triggerId' => 'newtags-input', 'id' => $id));
+      Kronolith_Imple::factory('TagAutoCompleter', array('triggerId' => 'newtags-input_' . $id, 'id' => $id));
       Kronolith_Imple::factory('TagActions', array('triggerId' => 'newtags-button',
                                                    'resource' => $id,
                                                    'type' => 'calendar',