Correctly unset the hidden input field for autocompletable-and-select-menu-settable...
authorOlivier Le Floch <olivier.le-floch@polytechnique.org>
Sat, 21 Jun 2008 12:43:54 +0000 (14:43 +0200)
committerOlivier Le Floch <olivier.le-floch@polytechnique.org>
Sat, 21 Jun 2008 12:44:11 +0000 (14:44 +0200)
ChangeLog
templates/search/adv.form.tpl

index 57e9686..6eeecb4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -40,6 +40,7 @@ Bug/Wish:
     * Search:
         - Fix display of autocompletion menu (use plugin's latest version) -ALK
         - Clicking on the "..." entry no longer replaces search with "..." -ALK
+        - #850: Fix autocompletion bug when changing an advanced search    -ALK
 
     * Xnet:
         - #821: Fix infinite loop when user can't be authenticated         -FRU
index 6f36626..3c6a5ba 100644 (file)
 
               return false;
             });
+        }).parent().find('.autocomplete').change(function() {
+          // If we change the value in the type="text" field, then the value in the 'integer id' field must not be used,
+          // to ensure that, we unset it
+          $(this).parent().find('.autocompleteTarget').val('');
         });
     });
 -->