Fixed some bugs in orders lists. Closes #3
This commit is contained in:
parent
e71cacfe50
commit
4db8184daa
5 changed files with 7 additions and 7 deletions
|
|
@ -169,7 +169,7 @@ class OrderingController < ApplicationController
|
|||
|
||||
respond_to do |format|
|
||||
format.html # myOrders.haml
|
||||
format.js { render :partial => "orders" }
|
||||
format.js { render :partial => "orders", :locals => {:orders => @closed_orders, :pagination => true} }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class OrdersController < ApplicationController
|
|||
format.html
|
||||
format.js do
|
||||
render :update do |page|
|
||||
page.replace_html 'orders_table', :partial => "list"
|
||||
page.replace_html 'orders_table', :partial => "orders"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue