back btn for pending
This commit is contained in:
@@ -1091,7 +1091,12 @@ $(function() {
|
||||
if (type == true) {
|
||||
var table_type = $('#table_id').find("option:selected").data('type');
|
||||
var table_id = $('#table_id').val();
|
||||
window.location.href = "/origami/dashboard";
|
||||
if(window.location.href.includes("modify_order")){
|
||||
var link_url = window.location.href.split("/");
|
||||
window.location.href = "/origami/quick_service/pending_order/"+link_url[link_url.length - 1];
|
||||
}else{
|
||||
window.location.href = "/origami/dashboard";
|
||||
}
|
||||
}else{
|
||||
var table_type = $('#table_type').text();
|
||||
var table_id = $('#table_id').text();
|
||||
|
||||
Reference in New Issue
Block a user