Skip to content

Commit

Permalink
make order view table sortable (closes #30)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwolfst committed Oct 31, 2016
1 parent ca96253 commit e222b1d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/rawbotz/views/order/view.haml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Items.
- else
= haml "order/_order_actions".to_sym, locals: {order: @order}
%br
%table.pure-table
%table.pure-table#order_item_table
%thead
%tr
%th
Expand Down Expand Up @@ -101,3 +101,8 @@ Items.
= @stock[item.local_product.product_id]
%br
= haml "order/_order_actions".to_sym, locals: {order: @order}
:javascript
$(document).ready(function() {
$("#order_item_table").tablesorter( {headerTemplate: ""} );
});

0 comments on commit e222b1d

Please sign in to comment.