fixed some issue
This commit is contained in:
@@ -123,25 +123,29 @@ $(document).ready(function(){
|
||||
data: params,
|
||||
success: function(result){
|
||||
// alert("Updated!");
|
||||
<% 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' %>
|
||||
if(result.status){
|
||||
<% 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' %>
|
||||
window.location.href = '/origami/table/'+<%=@link_type%>;
|
||||
<% else %>
|
||||
window.location.href = '/origami/room/'+<%=@link_type%>;
|
||||
<% end %>
|
||||
<% else %>
|
||||
window.location.href = '/origami/table/'+<%=@link_type%>;
|
||||
<% else %>
|
||||
window.location.href = '/origami/room/'+<%=@link_type%>;
|
||||
<% end %>
|
||||
<% else %>
|
||||
window.location.href = '/origami/table/'+<%=@link_type%>;
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
window.location.href = '/oqs';
|
||||
<% end %>
|
||||
<% else %>
|
||||
window.location.href = '/oqs';
|
||||
<% end %>
|
||||
}else{
|
||||
swal("Alert!", result.message, "warning");
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user