b8733271 by G Manojkumar

Not to Play incoming ring when user is in call

1 parent fa1c5d0f
......@@ -426,7 +426,12 @@ function incomingPopupAlert(var1,var2,var3)
{
//var incomingnotify=growlSNotify(var1,var2,"top-right");
//setTimeout(function(){$.gritter.remove(incomingnotify, {fade: true,speed: 'slow'});incomingnotify=0;},1500);
if($('#userLoginRole').val()=="Supervisor")startRingTone();
if((kstychCall['ts_Talk']===0 && kstychCall['ts_Call']===0)){
if($('#userLoginRole').val()=="Unit_Head")startRingTone();
//console.log($('#userLoginRole').val());
}
//console.log(kstychCall['ts_Talk']);
//console.log(kstychCall['ts_Call']);
//console.log($('#userLoginRole').val());
$.titleAlert(var1+" "+var2, {
requireBlur:true,
......
......@@ -242,6 +242,7 @@ foreach($tmodules as $mname=>$marr)
<?php } ?>
<div><a href="#" class="btn btn-primary" onclick="menuAction('message');return false;"><i class="fa fa-list"></i> <span>View all messages <?php if($messagescount>0)echo "($messagescount)"; ?></span></a></div>
</ul>
<input type="hidden" id="userLoginRole" value="{{Auth::user()->usertype}}">
</li>
<li class="dropdown notif" style='height:35px'>
<a href="#" class="dropdown-toggle" data-toggle="dropdown" style='height:35px' onclick='$("#topmenunotifucount").html("");'><i class="notif-block fa fa-bell"></i><span class="badge badge-info" id=topmenunotifucount><?php if(isset($meta['ncnt'])&&$meta['ncnt']>0)echo $meta['ncnt']; ?></span></a>
......
......@@ -142,7 +142,6 @@ $user=Auth::user();
}
</style>
<input type="hidden" id="userLoginRole" value="{{Auth::user()->usertype}}">
<div class="layout-app"><!-- row-app -->
<div class="row row-app">
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!