add order double click fix

This commit is contained in:
Yan
2017-11-17 18:43:42 +06:30
parent d5fb88a275
commit 2555efa186

View File

@@ -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
}
}
});
}
// }
// });
}
});
});