7f0705ea by G Manojkumar

added array for userRole

1 parent b8733271
......@@ -424,13 +424,14 @@ function dialerUIUpdate(var1,var2,var3)
function incomingPopupAlert(var1,var2,var3)
{
var loginRoleArray=["Unit_Head"];
//var incomingnotify=growlSNotify(var1,var2,"top-right");
//setTimeout(function(){$.gritter.remove(incomingnotify, {fade: true,speed: 'slow'});incomingnotify=0;},1500);
if((kstychCall['ts_Talk']===0 && kstychCall['ts_Call']===0)){
if($('#userLoginRole').val()=="Unit_Head")startRingTone();
//console.log($('#userLoginRole').val());
if($.inArray($('#userLoginRole').val(), loginRoleArray)>-1)startRingTone();
}
//console.log(kstychCall['ts_Talk']);
//console.log(kstychCall['ts_Talk']);
//console.log(kstychCall['ts_Call']);
//console.log($('#userLoginRole').val());
$.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!