// Supply Orders : Move ajax product search in the controller -> ajaxProcessSearchProduct()

This commit is contained in:
dSevere
2011-11-18 16:57:10 +00:00
parent d49a428a98
commit 4e7a4a692a
2 changed files with 60 additions and 1 deletions
@@ -214,7 +214,7 @@
});
// set autocomplete on search field
$('#cur_product_name').autocomplete("ajax_supply_order_products_list.php", {
$('#cur_product_name').autocomplete("ajax-tab.php", {
delay: 100,
minChars: 4,
autoFill: true,
@@ -226,6 +226,10 @@
dataType: 'json',
extraParams: {
supplier_id: '{$supplier_id}',
ajax : '1',
controller : 'AdminSupplyOrders',
token : '{$token}',
action : 'searchProduct',
},
parse: function(data) {
return $.map(data, function(row) {