shift
This commit is contained in:
@@ -19,9 +19,9 @@ class Origami::HomeController < BaseOrigamiController
|
||||
@orders = Order.get_orders()
|
||||
end
|
||||
|
||||
def item_show
|
||||
selection(params[:booking_id],1)
|
||||
end
|
||||
# def item_show
|
||||
# selection(params[:booking_id],1)
|
||||
# end
|
||||
|
||||
def selection(selected_id, is_ajax)
|
||||
str = []
|
||||
@@ -37,8 +37,8 @@ class Origami::HomeController < BaseOrigamiController
|
||||
@order_details = OrderItem.get_order_items_details(params[:booking_id])
|
||||
@order_details.each do |ord_detail|
|
||||
str.push(ord_detail)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if is_ajax == 1
|
||||
render :json => str.to_json
|
||||
|
||||
Reference in New Issue
Block a user