update call waiter channel

This commit is contained in:
Aung Myo
2017-12-05 10:24:01 +06:30
parent 3354733e41
commit 20a86b86f5
2 changed files with 39 additions and 41 deletions

View File

@@ -6,9 +6,8 @@ App.call_waiter = App.cable.subscriptions.create('CallWaiterChannel', {
disconnected: function() {}, disconnected: function() {},
received: function(data) { received: function(data) {
console.log(data.table);
console.log(data.time);
table = data.table table = data.table
// for Notificaiotn message // for Notificaiotn message
var placementFrom = "top"; var placementFrom = "top";
var placementAlign = "center"; var placementAlign = "center";
@@ -31,7 +30,6 @@ App.call_waiter = App.cable.subscriptions.create('CallWaiterChannel', {
}, },
{ {
type: colorName, type: colorName,
newest_on_top: true,
allow_dismiss: allowDismiss, allow_dismiss: allowDismiss,
newest_on_top: true, newest_on_top: true,
timer: 200000000000000, timer: 200000000000000,
@@ -56,6 +54,6 @@ App.call_waiter = App.cable.subscriptions.create('CallWaiterChannel', {
}); });
} }
//end Notificaiotn message //end Notificaiotn message
} }
}); });

View File

@@ -380,7 +380,7 @@
}); });
$('#pay').click(function() { $('#pay').click(function() {
$('#pay').text("Processing, Please wait!") // $('#pay').text("Processing, Please wait!")
$( "#loading_wrapper" ).show(); $( "#loading_wrapper" ).show();