seperate rails logic for parameters for showing products

This commit is contained in:
2012-09-17 16:04:04 +02:00
parent c573c83c4c
commit 29848bb3cf
3 changed files with 28 additions and 9 deletions
@@ -18,7 +18,7 @@
tfoot
tr
td colspan=2
button class="btn btn-primary" onClick="Quser.order_selected_products({table_id: '#{@table.id}'})" data-t="selected_products.order"= t('selected_products.order')
button class="btn btn-primary" onClick="Quser.order_selected_products()" data-t="selected_products.order"= t('selected_products.order')
| 
button class="btn btn btn-warning" onClick="Quser.clear_selected_products()" data-t="selected_products.clear"= t('selected_products.clear')
td.currency
@@ -27,7 +27,7 @@
- content_for :footer do
javascript:
jQuery(function(){
Quser.load_table_products('#{@table.id}', #{@table.occupied? ? 'true' : 'false'});
Quser.load_table_products();
QMobile.activateRotation();
})