Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

trigger change event when we change id element

  • Loading branch information...
commit cb055ca2b397e1b07e8d0f9855cf87b970ce8e00 1 parent 18c0112
@zacheryph authored
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');
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.