89ebf718 by prami

popup show if current campaing is inactive

1 parent b2b8b8c1
...@@ -915,9 +915,25 @@ function updateDialerState(objstr,key,val,key2,val2) ...@@ -915,9 +915,25 @@ function updateDialerState(objstr,key,val,key2,val2)
915 { 915 {
916 doAjax('dialer?action=previewnext&client='+client,datastr,'dialersearchresults', 'ajax_manualdial2','singlefail','POST', 916 doAjax('dialer?action=previewnext&client='+client,datastr,'dialersearchresults', 'ajax_manualdial2','singlefail','POST',
917 function(retstr){ 917 function(retstr){
918 if(retstr.responseText == "false"){
919
920 $("#tcampaign_select option").each(function(){
921 var opt = $(this).val();
922 if(opt == client){
923 $(this).remove();
924 }
925 });
926 var errorModel = $('#showInacitveClientErrMess');
927 errorModel.find('.modal-body').text("Your current campaign "+client +' is no more active.');
928 errorModel.modal('show');
929 //$('#showInacitveClientErrMess').modal('show');
930
931 campaignSelect();
932 }
933
918 if(kstychCall['previewcrmid']!="") 934 if(kstychCall['previewcrmid']!="")
919 { 935 {
920 kSetDData('C','previewcrmid',""); 936 kSetDData('C','previewcrmid',"");
921 updateDialerState(); 937 updateDialerState();
922 } 938 }
923 else 939 else
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
30 <div class="col-sm-4 bot"> 30 <div class="col-sm-4 bot">
31 <a href="javascript:;" onclick="menuAction('disposition');return false;" style="color:white;"> 31 <a href="javascript:;" onclick="menuAction('disposition');return false;" style="color:white;">
32 <div class="new1"> 32 <div class="new1">
33 <div class="icon"> <i class="fa fa-users"></i></div> 33 <div class="icon"> <i class="fa fa-list"></i></div>
34 Disposition List 34 Disposition List
35 </div> 35 </div>
36 </a> 36 </a>
......
...@@ -45,6 +45,26 @@ if(!isset($data['personal']))$data['personal']=array(); ...@@ -45,6 +45,26 @@ if(!isset($data['personal']))$data['personal']=array();
45 background: #48cfae; 45 background: #48cfae;
46 padding: 2px; 46 padding: 2px;
47 } 47 }
48
49 #showInacitveClientErrMess {
50 text-align: center;
51 padding: 0!important;
52 }
53
54 #showInacitveClientErrMess:before {
55 content: '';
56 display: inline-block;
57 height: 100%;
58 vertical-align: middle;
59 margin-right: -4px;
60 }
61
62 #showInacitveClientErrMess .modal-dialog {
63 display: inline-block;
64 text-align: left;
65 vertical-align: middle;
66 }
67
48 </style> 68 </style>
49 69
50 <script> 70 <script>
...@@ -60,6 +80,11 @@ $("#topuserdropmenu > li").hover(function() { ...@@ -60,6 +80,11 @@ $("#topuserdropmenu > li").hover(function() {
60 function() { 80 function() {
61 $(this).removeClass('active'); 81 $(this).removeClass('active');
62 }); 82 });
83
84 $( document ).ready(function() {
85
86 });
87
63 </script> 88 </script>
64 89
65 90
...@@ -181,6 +206,19 @@ function createSearchRecordDiv(divid) ...@@ -181,6 +206,19 @@ function createSearchRecordDiv(divid)
181 </div> 206 </div>
182 </div> 207 </div>
183 </div> 208 </div>
209 <div class="modal" id="showInacitveClientErrMess">
210 <div class="modal-dialog" >
211 <div class="modal-content">
212 <div class="modal-header">
213 <button type="button" class="close" id="errorClose" aria-hidden="true">&times;</button>
214 </div>
215 <div class="modal-body">
216 </div>
217
218 </div>
219 </div>
220 </div>
221
184 222
185 <div class="modal" id="kDialer_modal"> 223 <div class="modal" id="kDialer_modal">
186 <div class="modal-dialog" style='width:95%;'> 224 <div class="modal-dialog" style='width:95%;'>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!