Commits

Etienne Desautels committed b2705d6

Changed clearing of the field to be trigger by autocomplete select instead of autocomplete close in M2M fields to prevent clearing the field when someone type an error, etc.

  • Participants
  • Parent commits 3a2c197

Comments (0)

Files changed (1)

File autocomplete/static/autocomplete/js/jquery_autocomplete.js

 
     _initManyToMany: function() {
         var self = this;
-        this.element.bind( "autocompleteclose", function( event, ui ) {
+        this.element.bind( "autocompleteselect", function( event, ui ) {
             self.element.val( "" );
         });
         this.values = [];