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