hide popup modal in order reservation
This commit is contained in:
@@ -34,19 +34,19 @@ App.check_new_order = App.cable.subscriptions.create('CheckNewOrderChannel', {
|
||||
// swal.close();
|
||||
// }
|
||||
// });
|
||||
$("#notify_new_order_lists").text(order_lists);
|
||||
// $("#notify_new_order_lists").text(order_lists);
|
||||
// if($("#"+shop_code+"_notify_new_order").hasClass("hidden")){
|
||||
$("#"+shop_code+"_notify_new_order").removeClass("hidden");
|
||||
// $("#"+shop_code+"_notify_new_order").removeClass("hidden");
|
||||
// }
|
||||
$("#"+shop_code+"_notify_new_order").on('shown.bs.modal', function(e){
|
||||
// $(document).off('focusin.modal');
|
||||
$("#"+shop_code+"_notify_new_order").focus();
|
||||
$("#"+shop_code+"_doemal_new_order").addClass("hidden");
|
||||
$("#"+shop_code+"_notify_order_send_to_kitchen").addClass("hidden");
|
||||
$("#"+shop_code+"_notify_order_ready_to_delivery").addClass("hidden");
|
||||
}).on('hide.bs.modal', function (e) {
|
||||
$("#"+shop_code+"_notify_new_order").addClass("hidden");
|
||||
}).modal({show: true, keyboard: false, backdrop: false});
|
||||
// $("#"+shop_code+"_notify_new_order").on('shown.bs.modal', function(e){
|
||||
// // $(document).off('focusin.modal');
|
||||
// $("#"+shop_code+"_notify_new_order").focus();
|
||||
// $("#"+shop_code+"_doemal_new_order").addClass("hidden");
|
||||
// $("#"+shop_code+"_notify_order_send_to_kitchen").addClass("hidden");
|
||||
// $("#"+shop_code+"_notify_order_ready_to_delivery").addClass("hidden");
|
||||
// }).on('hide.bs.modal', function (e) {
|
||||
// $("#"+shop_code+"_notify_new_order").addClass("hidden");
|
||||
// }).modal({show: true, keyboard: false, backdrop: false});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user