Permalink
Browse files

trigger change event when we change id element

  • Loading branch information...
1 parent 18c0112 commit cb055ca2b397e1b07e8d0f9855cf87b970ce8e00 @zacheryph committed Sep 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/assets/javascripts/autocomplete-rails-uncompressed.js
View
2 lib/assets/javascripts/autocomplete-rails-uncompressed.js
@@ -100,7 +100,7 @@ $(document).ready(function(){
var data = $(this).data(ui.item.id.toString());
var update_elements = $.parseJSON($(this).attr("data-update-elements"));
for (var key in update_elements) {
- $(update_elements[key]).val(data[key]);
+ $(update_elements[key]).val(data[key]).trigger('change');
}
}
}

0 comments on commit cb055ca

Please sign in to comment.