change order reservation

This commit is contained in:
phyusin
2018-05-08 17:28:09 +06:30
parent 6de16ee4fe
commit 1716d14df3
11 changed files with 430 additions and 193 deletions

View File

@@ -18,25 +18,8 @@ App.check_new_order = App.cable.subscriptions.create('CheckNewOrderChannel', {
});
// alert(order_lists);
swal({
html: true,
title: 'Information',
target: document.getElementById('notify_new_order'),
text: "You have new orders. <br/>"+
"Are you accept or reject for these orders <b>"+order_lists+"</b>?",
type: 'success',
timer: 1000,
closeOnConfirm: false,
closeOnCancel: false,
allowOutsideClick: false
},function(isConfirm){
if(isConfirm){
swal.close();
}
});
// $("#notify_new_orderLabel").text("You have new orders.");
// $("#notify_new_orderBody").text("Are you accept or reject for these orders <b>"+order_lists+"</b>?");
// $("#notify_new_order").modal({show: true, keyboard: false, backdrop: false});
$("#notify_new_order_lists").text(order_lists);
$("#notify_new_order").modal({show: true, keyboard: false, backdrop: false});
}
}
});