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