autocompleter.init() is also called in the _editEvent callback, no
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 15 Nov 2009 20:45:21 +0000 (15:45 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 15 Nov 2009 20:45:21 +0000 (15:45 -0500)
need to call it in every case in editEvent()

kronolith/js/kronolith.js

index c939d41..d71e292 100644 (file)
@@ -2381,7 +2381,6 @@ KronolithCore = {
         };
 
         this.updateCalendarDropDown('kronolithEventCalendar');
-        $('kronolithEventTags').autocompleter.init();
         $('kronolithEventForm').enable();
         $('kronolithEventForm').reset();
         this.doAction('ListTopTags', {}, this._topTags);
@@ -2389,6 +2388,7 @@ KronolithCore = {
             RedBox.loading();
             this.doAction('GetEvent', { 'cal': calendar, 'id': id }, this._editEvent.bind(this));
         } else {
+            $('kronolithEventTags').autocompleter.init();
             var d = date ? this.parseDate(date) : new Date();
             $('kronolithEventId').clear();
             $('kronolithEventCalendar').setValue(Kronolith.conf.default_calendar);