add order double click fix
This commit is contained in:
@@ -660,25 +660,25 @@ $(function() {
|
||||
url: ajax_url,
|
||||
data: params,
|
||||
dataType: "json",
|
||||
success:function(result){
|
||||
$("#oqs_loading_wrapper").hide();
|
||||
swal({
|
||||
title: "Information !",
|
||||
text: 'Order has been successfully created',
|
||||
confirmButtonColor: "green",
|
||||
confirmButtonText: "Yes!",
|
||||
closeOnConfirm: false,
|
||||
}, function (isConfirm) {
|
||||
if (isConfirm) {
|
||||
success:function(result){
|
||||
// $("#oqs_loading_wrapper").hide();
|
||||
// swal({
|
||||
// title: "Information !",
|
||||
// text: 'Order has been successfully created',
|
||||
// confirmButtonColor: "green",
|
||||
// confirmButtonText: "Yes!",
|
||||
// closeOnConfirm: false,
|
||||
// }, function (isConfirm) {
|
||||
// if (isConfirm) {
|
||||
if(table_type == "Table"){
|
||||
window.location.href = "/origami/table/" + table_id
|
||||
}
|
||||
else {
|
||||
window.location.href = "/origami/room/" + table_id
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
// }
|
||||
// });
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user