order product fixes

This commit is contained in:
2012-12-07 16:49:23 +01:00
parent 118afb7da9
commit b5ddd448b2
3 changed files with 6 additions and 6 deletions
+1 -2
View File
@@ -238,9 +238,8 @@ class Quser
order_selected_products: ()->
return if $.isEmptyObject(window.active_products_list)
return unless Qstorage.table_id
h = {}
h['table_id'] = Qstorage.table_id
h['table_id'] = Qstorage.getItem('table_id') if Qstorage.getItem('table_id')
for product_id, number of window.active_products_list
h['products['+product_id+']'] = number
$.post(data_host + '/user/order_selected_products', $.extend(h, authentication_object), ((res) => @handle_response(res)), 'json')