93fe7796 by G Manojkumar

Minor bug fixed

1 parent 93b4094f
...@@ -161,7 +161,7 @@ class DialerController extends Controller { ...@@ -161,7 +161,7 @@ class DialerController extends Controller {
161 } 161 }
162 if(!empty($users)) 162 if(!empty($users))
163 { 163 {
164 $searchresult.="<div id=divworking></div><div style='clear:both'></div><script>kSetDData('C','previewcrmid','".$users[0]['id']."');showRecruit(\"".$users[0]['id']."\",'1234');</script>"; 164 $searchresult.="<div id=divworking></div><div style='clear:both'></div><script>kSetDData('C','previewcrmid','".$users[0]['id']."');showRecruit(\"".$users[0]['id']."\",'0');</script>";
165 165
166 $searchresult.="<div id=internalid_matchlist></div><script> 166 $searchresult.="<div id=internalid_matchlist></div><script>
167 doAjax('record?action=quicksearch','maintextsearch_1_txt=".$users[0]['clientinternalid']."&maintextsearch_1_span=InternalID','internalid_matchlist','searchMutex', 'searchxhr','POST',function(retstr){ 167 doAjax('record?action=quicksearch','maintextsearch_1_txt=".$users[0]['clientinternalid']."&maintextsearch_1_span=InternalID','internalid_matchlist','searchMutex', 'searchxhr','POST',function(retstr){
......
...@@ -3361,12 +3361,9 @@ function createRLP() ...@@ -3361,12 +3361,9 @@ function createRLP()
3361 3361
3362 } 3362 }
3363 function createSMSForm() 3363 function createSMSForm()
3364 { 3364 {
3365 //echo "Manoj";
3366
3367 $dataarr=$this->recruitdata["peopledata"]; 3365 $dataarr=$this->recruitdata["peopledata"];
3368 $number=$this->number; 3366 $number=$this->number;
3369 //echo "number=".$number;
3370 $smstemplates=DB::table('oncall_sms_template')->where('status','=','active')->select('sms','id')->get(); 3367 $smstemplates=DB::table('oncall_sms_template')->where('status','=','active')->select('sms','id')->get();
3371 $data=""; 3368 $data="";
3372 $data.="<div style='clear:both;margin:2% 0 0 1%;border-style: dotted solid dashed;padding:2%'> 3369 $data.="<div style='clear:both;margin:2% 0 0 1%;border-style: dotted solid dashed;padding:2%'>
...@@ -3390,7 +3387,6 @@ function createSMSForm() ...@@ -3390,7 +3387,6 @@ function createSMSForm()
3390 <div style='clear:both;width:100%;'> 3387 <div style='clear:both;width:100%;'>
3391 <div>"; 3388 <div>";
3392 foreach($smstemplates as $smstemplate){ 3389 foreach($smstemplates as $smstemplate){
3393 //print_r($smstemplate->sms);
3394 $data.="<input type='radio' name='templateid' value=".$smstemplate->id."><label>".$smstemplate->sms."</label>"; 3390 $data.="<input type='radio' name='templateid' value=".$smstemplate->id."><label>".$smstemplate->sms."</label>";
3395 } 3391 }
3396 $data.="</div> 3392 $data.="</div>
...@@ -3406,16 +3402,18 @@ function createSMSForm() ...@@ -3406,16 +3402,18 @@ function createSMSForm()
3406 var postdata='mobile='+$('#mobilenumber').val(); 3402 var postdata='mobile='+$('#mobilenumber').val();
3407 postdata+='&smsid='+$('input[name=\"templateid\"]:checked').val(); 3403 postdata+='&smsid='+$('input[name=\"templateid\"]:checked').val();
3408 var checkvalue=$('input[name=\"templateid\"]:checked').val(); 3404 var checkvalue=$('input[name=\"templateid\"]:checked').val();
3405 var number=$('#mobilenumber').val();
3409 //alert(checkvalue); 3406 //alert(checkvalue);
3407 if(number!=='0'){
3410 if(checkvalue === undefined){ 3408 if(checkvalue === undefined){
3411 alert('Please select any option'); 3409 alert('Please select any option');
3412 3410
3413 }else{ 3411 }else{
3414 //alert('entered');
3415 doAjax('record?action=sendsms',postdata,'createtaskdiv','ajaxMutex_recSaveData','singlethis','POST'); 3412 doAjax('record?action=sendsms',postdata,'createtaskdiv','ajaxMutex_recSaveData','singlethis','POST');
3416
3417 //alert('your template is given '+$('input[name=\"templateid\"]:checked').val());
3418 } 3413 }
3414 }else{
3415 alert('Your not in Call');
3416 }
3419 3417
3420 }) 3418 })
3421 3419
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!