multiple zone with cashier terminal call waiter noti

This commit is contained in:
phyusin
2018-10-11 10:22:35 +06:30
parent d913c074e0
commit 8897f1d052
5 changed files with 27 additions and 11 deletions

View File

@@ -10,14 +10,18 @@ App.call_waiter = App.cable.subscriptions.create('CallWaiterChannel', {
var hostname = location.hostname.trim();
if(data.from == "" || hostname == data.from)
{
table = data.table
time = data.time
table = data.table;
time = data.time;
// for Notificaiotn message
var element = "#notify-wrapper"
var class_name = "";
if(data.shift_ids != "" && data.shift_ids!=null){
if(data.shift_ids.length == 1){
class_name = ".shift_" + data.shift_ids;
}
}
var element = "#notify-wrapper" + class_name;
var animateEnter = "";
var animateExit = "";
if (time == 'print_error') {
var colorName = "alert-danger";
var placementFrom = "center";