order reservation js
This commit is contained in:
@@ -726,12 +726,12 @@ function print_receipt(){
|
|||||||
data: params,
|
data: params,
|
||||||
success:function(result){
|
success:function(result){
|
||||||
// For Server Print - from jade
|
// For Server Print - from jade
|
||||||
// if ($("#server_mode").val() == "cloud") {
|
if ($("#server_mode").val() == "cloud") {
|
||||||
// if(typeof code2lab != 'undefined'){
|
if(typeof code2lab != 'undefined'){
|
||||||
// code2lab.printFile(result.filepath.substr(6), result.printer_url);
|
code2lab.printFile(result.filepath.substr(6), result.printer_url);
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// else{
|
else{
|
||||||
swal({
|
swal({
|
||||||
title: "Print Success",
|
title: "Print Success",
|
||||||
text: "Complete Order",
|
text: "Complete Order",
|
||||||
@@ -743,7 +743,7 @@ function print_receipt(){
|
|||||||
}, function () {
|
}, function () {
|
||||||
window.location.href = '/origami/order_reservation';
|
window.location.href = '/origami/order_reservation';
|
||||||
});
|
});
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user