modify call waiter
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
App.call_waiter = App.cable.subscriptions.create('CallWaiterChannel', {
|
||||
// App.messages = App.cable.subscriptions.create('MessagesChannel', {
|
||||
// App.messages = App.cable.subscriptions.create('MessagesChannel', {
|
||||
|
||||
connected: function() {},
|
||||
|
||||
disconnected: function() {},
|
||||
|
||||
received: function(data) {
|
||||
|
||||
received: function(data) {
|
||||
|
||||
var hostname = location.hostname.trim();
|
||||
if(data.from == "" || hostname == data.from)
|
||||
{
|
||||
@@ -19,7 +19,7 @@ App.call_waiter = App.cable.subscriptions.create('CallWaiterChannel', {
|
||||
class_name = ".shift_" + data.shift_ids;
|
||||
}
|
||||
}
|
||||
var element = "#notify-wrapper" + class_name;
|
||||
var element = "#notify-wrapper"; // + class_name;
|
||||
var animateEnter = "";
|
||||
var animateExit = "";
|
||||
if (time == 'print_error') {
|
||||
@@ -35,10 +35,10 @@ App.call_waiter = App.cable.subscriptions.create('CallWaiterChannel', {
|
||||
var text = " Calling Waiter <br> "+table.name ;
|
||||
style ="width:180px !important;"
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (text != null || colorName != null){
|
||||
showNotification(element, colorName, text, placementFrom, placementAlign, animateEnter, animateExit);
|
||||
showNotification(element, colorName, text, placementFrom, placementAlign, animateEnter, animateExit);
|
||||
}
|
||||
|
||||
function showNotification(element, colorName, text, placementFrom, placementAlign, animateEnter, animateExit) {
|
||||
@@ -79,4 +79,3 @@ App.call_waiter = App.cable.subscriptions.create('CallWaiterChannel', {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user