SQA feedback
This commit is contained in:
4
app/views/oqs/edit/index.html.erb
Executable file → Normal file
4
app/views/oqs/edit/index.html.erb
Executable file → Normal file
@@ -112,6 +112,8 @@ $(document).ready(function(){
|
||||
var remarks = $("textarea[name='remarks']").val();
|
||||
var order_items_id = $(this).attr('data-id');
|
||||
var params = { 'order_items_id': order_items_id, 'qty_weight': qty_weight, 'remarks': remarks }
|
||||
var booking_id = '<%= @booking.booking_id %>';
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/oqs/' + order_items_id,
|
||||
@@ -121,6 +123,8 @@ $(document).ready(function(){
|
||||
<% if !@link_type.nil? %>
|
||||
<% if @link_type == 'oqs' %>
|
||||
window.location.href = '/oqs';
|
||||
<% elsif @link_type == 'pending' %>
|
||||
window.location.href = '/origami/quick_service/pending_order/'+booking_id;
|
||||
<% else %>
|
||||
<% if !@dining_type.nil? %>
|
||||
<% if @dining_type == 'Table' %>
|
||||
|
||||
Reference in New Issue
Block a user