From: Michael J. Rubinsky Date: Sun, 15 Nov 2009 20:45:21 +0000 (-0500) Subject: autocompleter.init() is also called in the _editEvent callback, no X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5b80a4fc0aefb8dbb3af6d30b3bd1c22db948544;p=horde.git autocompleter.init() is also called in the _editEvent callback, no need to call it in every case in editEvent() --- diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index c939d414a..d71e292d7 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -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);