7f0705ea by G Manojkumar

added array for userRole

1 parent b8733271
...@@ -424,13 +424,14 @@ function dialerUIUpdate(var1,var2,var3) ...@@ -424,13 +424,14 @@ function dialerUIUpdate(var1,var2,var3)
424 424
425 function incomingPopupAlert(var1,var2,var3) 425 function incomingPopupAlert(var1,var2,var3)
426 { 426 {
427 var loginRoleArray=["Unit_Head"];
427 //var incomingnotify=growlSNotify(var1,var2,"top-right"); 428 //var incomingnotify=growlSNotify(var1,var2,"top-right");
428 //setTimeout(function(){$.gritter.remove(incomingnotify, {fade: true,speed: 'slow'});incomingnotify=0;},1500); 429 //setTimeout(function(){$.gritter.remove(incomingnotify, {fade: true,speed: 'slow'});incomingnotify=0;},1500);
429 if((kstychCall['ts_Talk']===0 && kstychCall['ts_Call']===0)){ 430 if((kstychCall['ts_Talk']===0 && kstychCall['ts_Call']===0)){
430 if($('#userLoginRole').val()=="Unit_Head")startRingTone(); 431 if($.inArray($('#userLoginRole').val(), loginRoleArray)>-1)startRingTone();
431 //console.log($('#userLoginRole').val());
432 } 432 }
433 //console.log(kstychCall['ts_Talk']); 433
434 //console.log(kstychCall['ts_Talk']);
434 //console.log(kstychCall['ts_Call']); 435 //console.log(kstychCall['ts_Call']);
435 //console.log($('#userLoginRole').val()); 436 //console.log($('#userLoginRole').val());
436 $.titleAlert(var1+" "+var2, { 437 $.titleAlert(var1+" "+var2, {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!