multiple zone with cashier terminal call waiter noti
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user