added array for userRole
Showing
1 changed file
with
4 additions
and
3 deletions
| ... | @@ -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, { | ... | ... |
-
Please register or sign in to post a comment