Merge branch 'master' of bitbucket.org:code2lab/sxrestaurant

This commit is contained in:
Aung Myo
2018-10-11 11:39:04 +06:30
8 changed files with 43 additions and 73 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";