93fe7796 by G Manojkumar

Minor bug fixed

1 parent 93b4094f
......@@ -161,7 +161,7 @@ class DialerController extends Controller {
}
if(!empty($users))
{
$searchresult.="<div id=divworking></div><div style='clear:both'></div><script>kSetDData('C','previewcrmid','".$users[0]['id']."');showRecruit(\"".$users[0]['id']."\",'1234');</script>";
$searchresult.="<div id=divworking></div><div style='clear:both'></div><script>kSetDData('C','previewcrmid','".$users[0]['id']."');showRecruit(\"".$users[0]['id']."\",'0');</script>";
$searchresult.="<div id=internalid_matchlist></div><script>
doAjax('record?action=quicksearch','maintextsearch_1_txt=".$users[0]['clientinternalid']."&maintextsearch_1_span=InternalID','internalid_matchlist','searchMutex', 'searchxhr','POST',function(retstr){
......
......@@ -3362,11 +3362,8 @@ function createRLP()
}
function createSMSForm()
{
//echo "Manoj";
$dataarr=$this->recruitdata["peopledata"];
$number=$this->number;
//echo "number=".$number;
$smstemplates=DB::table('oncall_sms_template')->where('status','=','active')->select('sms','id')->get();
$data="";
$data.="<div style='clear:both;margin:2% 0 0 1%;border-style: dotted solid dashed;padding:2%'>
......@@ -3390,7 +3387,6 @@ function createSMSForm()
<div style='clear:both;width:100%;'>
<div>";
foreach($smstemplates as $smstemplate){
//print_r($smstemplate->sms);
$data.="<input type='radio' name='templateid' value=".$smstemplate->id."><label>".$smstemplate->sms."</label>";
}
$data.="</div>
......@@ -3406,15 +3402,17 @@ function createSMSForm()
var postdata='mobile='+$('#mobilenumber').val();
postdata+='&smsid='+$('input[name=\"templateid\"]:checked').val();
var checkvalue=$('input[name=\"templateid\"]:checked').val();
var number=$('#mobilenumber').val();
//alert(checkvalue);
if(number!=='0'){
if(checkvalue === undefined){
alert('Please select any option');
}else{
//alert('entered');
doAjax('record?action=sendsms',postdata,'createtaskdiv','ajaxMutex_recSaveData','singlethis','POST');
//alert('your template is given '+$('input[name=\"templateid\"]:checked').val());
}
}else{
alert('Your not in Call');
}
})
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!