check order reservation
This commit is contained in:
@@ -34,6 +34,9 @@ App.check_new_order = App.cable.subscriptions.create('CheckNewOrderChannel', {
|
||||
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});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -34,6 +34,10 @@ App.check_order_ready_to_delivery = App.cable.subscriptions.create('CheckOrderRe
|
||||
swal.close();
|
||||
}
|
||||
});
|
||||
|
||||
// $("#notify_order_ready_to_deliveryLabel").text("You have orders that are ready to deliver.");
|
||||
// $("#notify_order_ready_to_deliveryBody").text("Could you ready these orders <b>"+order_lists+"</b> to deliver?");
|
||||
// $("#notify_order_ready_to_delivery").modal({show: true, keyboard: false, backdrop: false});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -34,6 +34,9 @@ App.check_order_send_to_kitchen = App.cable.subscriptions.create('CheckOrderSend
|
||||
swal.close();
|
||||
}
|
||||
});
|
||||
// $("#notify_order_send_to_kitchenLabel").text("You have to send order to kitchen.");
|
||||
// $("#notify_order_send_to_kitchenBody").text("Could you send these orders <b>"+order_lists+"</b> to kitchen?");
|
||||
// $("#notify_order_send_to_kitchen").modal({show: true, keyboard: false, backdrop: false});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -294,6 +294,8 @@ function showNewOrder(order_reservation){
|
||||
var date = new Date(order_reservation.requested_time);
|
||||
var time = timeFormat(date);
|
||||
var requested_date = date.getFullYear() + '-' + (date.getMonth() > 10? date.getMonth() : '0' + (date.getMonth() + 1)) +'-'+ (date.getDate() > 10? date.getDate() : '0' + date.getDate()) +' '+time;
|
||||
var audio = new Audio('/beep-07.wav'); // define your audio
|
||||
audio.play();
|
||||
swal({
|
||||
html: true,
|
||||
title: 'Information',
|
||||
|
||||
Reference in New Issue
Block a user