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