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();
|
// swal.close();
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
$("#notify_new_order_lists").text(order_lists);
|
// $("#notify_new_order_lists").text(order_lists);
|
||||||
// if($("#"+shop_code+"_notify_new_order").hasClass("hidden")){
|
// 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){
|
// $("#"+shop_code+"_notify_new_order").on('shown.bs.modal', function(e){
|
||||||
// $(document).off('focusin.modal');
|
// // $(document).off('focusin.modal');
|
||||||
$("#"+shop_code+"_notify_new_order").focus();
|
// $("#"+shop_code+"_notify_new_order").focus();
|
||||||
$("#"+shop_code+"_doemal_new_order").addClass("hidden");
|
// $("#"+shop_code+"_doemal_new_order").addClass("hidden");
|
||||||
$("#"+shop_code+"_notify_order_send_to_kitchen").addClass("hidden");
|
// $("#"+shop_code+"_notify_order_send_to_kitchen").addClass("hidden");
|
||||||
$("#"+shop_code+"_notify_order_ready_to_delivery").addClass("hidden");
|
// $("#"+shop_code+"_notify_order_ready_to_delivery").addClass("hidden");
|
||||||
}).on('hide.bs.modal', function (e) {
|
// }).on('hide.bs.modal', function (e) {
|
||||||
$("#"+shop_code+"_notify_new_order").addClass("hidden");
|
// $("#"+shop_code+"_notify_new_order").addClass("hidden");
|
||||||
}).modal({show: true, keyboard: false, backdrop: false});
|
// }).modal({show: true, keyboard: false, backdrop: false});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -34,19 +34,19 @@ App.check_order_ready_to_delivery = App.cable.subscriptions.create('CheckOrderRe
|
|||||||
// swal.close();
|
// swal.close();
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
$("#notify_order_ready_to_delivery_lists").text(order_lists);
|
// $("#notify_order_ready_to_delivery_lists").text(order_lists);
|
||||||
// if($("#notify_order_ready_to_delivery").hasClass("hidden")){
|
// if($("#notify_order_ready_to_delivery").hasClass("hidden")){
|
||||||
$("#"+shop_code+"_notify_order_ready_to_delivery").removeClass("hidden");
|
// $("#"+shop_code+"_notify_order_ready_to_delivery").removeClass("hidden");
|
||||||
// }
|
// }
|
||||||
$("#"+shop_code+"_notify_order_ready_to_delivery").on('shown.bs.modal', function(e){
|
// $("#"+shop_code+"_notify_order_ready_to_delivery").on('shown.bs.modal', function(e){
|
||||||
// $(document).off('focusin.modal');
|
// // $(document).off('focusin.modal');
|
||||||
$("#"+shop_code+"_notify_order_ready_to_delivery").focus();
|
// $("#"+shop_code+"_notify_order_ready_to_delivery").focus();
|
||||||
$("#"+shop_code+"_doemal_new_order").addClass("hidden");
|
// $("#"+shop_code+"_doemal_new_order").addClass("hidden");
|
||||||
$("#"+shop_code+"_notify_new_order").addClass("hidden");
|
// $("#"+shop_code+"_notify_new_order").addClass("hidden");
|
||||||
$("#"+shop_code+"_notify_order_send_to_kitchen").addClass("hidden");
|
// $("#"+shop_code+"_notify_order_send_to_kitchen").addClass("hidden");
|
||||||
}).on('hide.bs.modal', function (e) {
|
// }).on('hide.bs.modal', function (e) {
|
||||||
$("#"+shop_code+"_notify_order_ready_to_delivery").addClass("hidden");
|
// $("#"+shop_code+"_notify_order_ready_to_delivery").addClass("hidden");
|
||||||
}).modal({show: true, keyboard: false, backdrop: false});
|
// }).modal({show: true, keyboard: false, backdrop: false});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -34,19 +34,19 @@ App.check_order_send_to_kitchen = App.cable.subscriptions.create('CheckOrderSend
|
|||||||
// swal.close();
|
// swal.close();
|
||||||
// }
|
// }
|
||||||
// });
|
// });
|
||||||
$("#notify_order_send_to_kitchen_lists").text(order_lists);
|
// $("#notify_order_send_to_kitchen_lists").text(order_lists);
|
||||||
// if($("#notify_order_send_to_kitchen").hasClass("hidden")){
|
// if($("#notify_order_send_to_kitchen").hasClass("hidden")){
|
||||||
$("#"+shop_code+"_notify_order_send_to_kitchen").removeClass("hidden");
|
// $("#"+shop_code+"_notify_order_send_to_kitchen").removeClass("hidden");
|
||||||
// }
|
// }
|
||||||
$("#"+shop_code+"_notify_order_send_to_kitchen").on('shown.bs.modal', function(e){
|
// $("#"+shop_code+"_notify_order_send_to_kitchen").on('shown.bs.modal', function(e){
|
||||||
// $(document).off('focusin.modal');
|
// // $(document).off('focusin.modal');
|
||||||
$("#"+shop_code+"_notify_order_send_to_kitchen").focus();
|
// $("#"+shop_code+"_notify_order_send_to_kitchen").focus();
|
||||||
$("#"+shop_code+"_doemal_new_order").addClass("hidden");
|
// $("#"+shop_code+"_doemal_new_order").addClass("hidden");
|
||||||
$("#"+shop_code+"_notify_new_order").addClass("hidden");
|
// $("#"+shop_code+"_notify_new_order").addClass("hidden");
|
||||||
$("#"+shop_code+"_notify_order_ready_to_delivery").addClass("hidden");
|
// $("#"+shop_code+"_notify_order_ready_to_delivery").addClass("hidden");
|
||||||
}).on('hide.bs.modal', function (e) {
|
// }).on('hide.bs.modal', function (e) {
|
||||||
$("#"+shop_code+"_notify_order_send_to_kitchen").addClass("hidden");
|
// $("#"+shop_code+"_notify_order_send_to_kitchen").addClass("hidden");
|
||||||
}).modal({show: true, keyboard: false, backdrop: false});
|
// }).modal({show: true, keyboard: false, backdrop: false});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -489,20 +489,20 @@ function showNewOrder(order_reservation,shop_code){
|
|||||||
audio.play();
|
audio.play();
|
||||||
// },10000);
|
// },10000);
|
||||||
|
|
||||||
$("#new_order").text(order_reservation.order_reservation_id);
|
// $("#new_order").text(order_reservation.order_reservation_id);
|
||||||
$("#new_order_date").text(requested_date);
|
// $("#new_order_date").text(requested_date);
|
||||||
// if($("#"+shop_code+"_doemal_new_order").hasClass("hidden")){
|
// if($("#"+shop_code+"_doemal_new_order").hasClass("hidden")){
|
||||||
$("#"+shop_code+"_doemal_new_order").removeClass("hidden");
|
// $("#"+shop_code+"_doemal_new_order").removeClass("hidden");
|
||||||
// }
|
// }
|
||||||
$("#"+shop_code+"_doemal_new_order").on('shown.bs.modal', function(e){
|
// $("#"+shop_code+"_doemal_new_order").on('shown.bs.modal', function(e){
|
||||||
// $(document).off('focusin.modal');
|
// // $(document).off('focusin.modal');
|
||||||
$("#"+shop_code+"_doemal_new_order").focus();
|
// $("#"+shop_code+"_doemal_new_order").focus();
|
||||||
$("#"+shop_code+"_notify_new_order").addClass("hidden");
|
// $("#"+shop_code+"_notify_new_order").addClass("hidden");
|
||||||
$("#"+shop_code+"_notify_order_send_to_kitchen").addClass("hidden");
|
// $("#"+shop_code+"_notify_order_send_to_kitchen").addClass("hidden");
|
||||||
$("#"+shop_code+"_notify_order_ready_to_delivery").addClass("hidden");
|
// $("#"+shop_code+"_notify_order_ready_to_delivery").addClass("hidden");
|
||||||
}).on('hide.bs.modal', function (e) {
|
// }).on('hide.bs.modal', function (e) {
|
||||||
$("#"+shop_code+"_doemal_new_order").addClass("hidden");
|
// $("#"+shop_code+"_doemal_new_order").addClass("hidden");
|
||||||
}).modal({show: true, keyboard: false, backdrop: false});
|
// }).modal({show: true, keyboard: false, backdrop: false});
|
||||||
// swal({
|
// swal({
|
||||||
// title: 'Information',
|
// title: 'Information',
|
||||||
// target: document.getElementById(shop_code+"_notify_new_order"),
|
// target: document.getElementById(shop_code+"_notify_new_order"),
|
||||||
|
|||||||
Reference in New Issue
Block a user