From 710e447e1c2ca5e3d492bbb5d654221e8fbacb01 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Tue, 3 Aug 2010 23:16:43 +0200 Subject: [PATCH] Fix #1036. We remove all autocomplete DIVs after updates. --- public/javascripts/application.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/javascripts/application.js b/public/javascripts/application.js index cd9e7de1..1bdbbac1 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -200,6 +200,10 @@ function project_defaults(){ } function enable_rich_interaction(){ + /* fix for #1036 where closing a edit form before the autocomplete was filled + * resulted in a dropdown box that could not be removed. We remove all + * autocomplete boxes the hard way */ + $('.ac_results').remove(); $('input.Date').datepicker({'dateFormat': dateFormat, 'firstDay': weekStart}); /* Autocomplete */ $('input[name=context_name]').autocomplete(