fixed some issue
This commit is contained in:
@@ -34,10 +34,11 @@ App.check_new_order = App.cable.subscriptions.create('CheckNewOrderChannel', {
|
||||
// }
|
||||
// });
|
||||
$("#notify_new_order_lists").text(order_lists);
|
||||
$("#notify_new_order").on('shown.bs.modal', function(e){
|
||||
$("#notify_new_order").focus();
|
||||
$("#notify_new_order").on('show.bs.modal', function(e){
|
||||
$("#notify_order_send_to_kitchen").modal('hide');
|
||||
$("#notify_order_ready_to_delivery").modal('hide');
|
||||
}).on('shown.bs.modal', function(e){
|
||||
$("#notify_new_order").focus();
|
||||
}).on('hide.bs.modal', function (e) {
|
||||
$("#notify_new_order").modal("hide");
|
||||
}).modal({show: true, keyboard: false, backdrop: false});
|
||||
|
||||
@@ -35,9 +35,10 @@ App.check_order_ready_to_delivery = App.cable.subscriptions.create('CheckOrderRe
|
||||
// });
|
||||
$("#notify_order_ready_to_delivery_lists").text(order_lists);
|
||||
$("#notify_order_ready_to_delivery").on('shown.bs.modal', function(e){
|
||||
$("#notify_order_ready_to_delivery").focus();
|
||||
$("#notify_new_order").modal('hide');
|
||||
$("#notify_order_send_to_kitchen").modal('hide');
|
||||
}).on('shown.bs.modal', function(e){
|
||||
$("#notify_order_ready_to_delivery").focus();
|
||||
}).on('hide.bs.modal', function (e) {
|
||||
$("#notify_order_ready_to_delivery").modal("hide");
|
||||
}).modal({show: true, keyboard: false, backdrop: false});
|
||||
|
||||
@@ -34,10 +34,11 @@ App.check_order_send_to_kitchen = App.cable.subscriptions.create('CheckOrderSend
|
||||
// }
|
||||
// });
|
||||
$("#notify_order_send_to_kitchen_lists").text(order_lists);
|
||||
$("#notify_order_send_to_kitchen").on('shown.bs.modal', function(e){
|
||||
$("#notify_order_send_to_kitchen").focus();
|
||||
$("#notify_order_send_to_kitchen").on('show.bs.modal', function(e){
|
||||
$("#notify_new_order").modal('hide');
|
||||
$("#notify_order_ready_to_delivery").modal('hide');
|
||||
}).on('shown.bs.modal', function(e){
|
||||
$("#notify_order_send_to_kitchen").focus();
|
||||
}).on('hide.bs.modal', function (e) {
|
||||
$("#notify_order_send_to_kitchen").modal("hide");
|
||||
}).modal({show: true, keyboard: false, backdrop: false});
|
||||
|
||||
Reference in New Issue
Block a user