cmc-sales/webroot/js/findcustomer.js

27 lines
356 B
JavaScript
Raw Normal View History

2010-03-17 15:54:12 -07:00
/*
* filename: findcustomer.js
*
* used in: customers/find.ctp
* @todo: This doesn't update the ID for some reason.
*/
$(function() {
$("#customerName").autocomplete({
source: "/customers/completeCustomer",
minLength: 3,
2010-03-17 15:54:12 -07:00
select: function(event, ui) {
$("#CustomerId").val(ui.item.id);
}
});
}
);