Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flexydial_v3
/
fullerton
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
c1717535
authored
2020-04-27 17:39:03 +0000
by
Nitesh
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
stop dual load on calling
1 parent
8126045c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
6 deletions
app/Http/Controllers/DialerController.php
public/assets/js/dialer.js
app/Http/Controllers/DialerController.php
View file @
c171753
This diff could not be displayed because it is too large.
public/assets/js/dialer.js
View file @
c171753
...
...
@@ -634,9 +634,17 @@ function incomingPopupAlert(var1,var2,var3)
kDesktopNotification
(
""
,
var1
,
var2
,
1500
);
}
function
outgoingCall
()
function
outgoingCall
(
redial
=
''
)
{
var
dialersearchresults
=
''
;
if
(
redial
!=
"redial"
)
{
var
dialersearchresults
=
'dialersearchresults'
;
$
(
"#dialersearchresults"
).
html
(
""
);
}
else
{
var
displaydata
=
$
(
"#dialersearchresults"
).
html
();
}
kSetDData
(
'C'
,
'callnumber'
,
$
(
"#manualdialnumber_txt"
).
val
());
var
datastr
=
"kstychCall="
+
JSON
.
stringify
(
kstychCall
);
...
...
@@ -648,7 +656,10 @@ function outgoingCall()
{
if
(
kstychCall
[
'callnumber'
]
!=
""
)
{
doAjax
(
'dialer?action=newcall&client='
+
client
,
datastr
,
'dialersearchresults'
,
'ajax_manualdial'
,
'singlefail'
,
'POST'
,
function
(
retstr
){
doAjax
(
'dialer?action=newcall&client='
+
client
+
'&redial='
+
redial
,
datastr
,
dialersearchresults
,
'ajax_manualdial'
,
'singlefail'
,
'POST'
,
function
(
retstr
){
if
(
redial
==
"redial"
){
$
(
"#dialersearchresults"
).
html
(
displaydata
);
}
if
(
kstychCall
[
'crmid'
]
!=
""
)
{
kSetDData
(
'C'
,
'mCallState'
,
'Call'
);
...
...
@@ -675,7 +686,10 @@ function outgoingCall()
if
(
kstychDialer
[
'mDialerState'
]
==
"DialNext"
)
{
doAjax
(
'dialer?action=newcall&client='
+
client
,
datastr
,
'dialersearchresults'
,
'ajax_manualdial'
,
'singlefail'
,
'POST'
,
function
(
retstr
){
doAjax
(
'dialer?action=newcall&client='
+
client
,
datastr
,
dialersearchresults
,
'ajax_manualdial'
,
'singlefail'
,
'POST'
,
function
(
retstr
){
if
(
redial
==
"redial"
){
$
(
"#dialersearchresults"
).
html
(
displaydata
);
}
if
(
kstychCall
[
'crmid'
]
!=
""
)
{
kSetDData
(
'C'
,
'mCallState'
,
'Call'
);
...
...
@@ -695,7 +709,10 @@ function outgoingCall()
if
(
kstychDialer
[
'mDialerState'
]
==
"Progressive"
)
{
doAjax
(
'dialer?action=newcall&client='
+
client
,
datastr
,
'dialersearchresults'
,
'ajax_manualdial'
,
'singlefail'
,
'POST'
,
function
(
retstr
){
doAjax
(
'dialer?action=newcall&client='
+
client
+
'&redial='
+
redial
,
datastr
,
dialersearchresults
,
'ajax_manualdial'
,
'singlefail'
,
'POST'
,
function
(
retstr
){
if
(
redial
==
"redial"
){
$
(
"#dialersearchresults"
).
html
(
displaydata
);
}
if
(
kstychCall
[
'crmid'
]
!=
""
)
{
kSetDData
(
'C'
,
'mCallState'
,
'Call'
);
...
...
@@ -965,7 +982,7 @@ function resetDialer()
kSetDData
(
'C'
,
'ts_Dispo'
,
0
);
kSetDData
(
'C'
,
'ts_Close'
,
0
);
updateDialerState
(
"action"
,
"dialnext"
);
updateDialerState
(
"action"
,
"dialnext"
,
"redial"
);
return
;
}
...
...
@@ -1124,9 +1141,17 @@ function updateDialerState(objstr,key,val,key2,val2)
if
(
objstr
==
"action"
)
{
if
(
key
==
"dialnext"
)
if
(
key
==
"dialnext"
&&
val
==
"redial"
)
{
alert
(
val
+
"1"
);
outgoingCall
(
val
);
}
if
(
key
==
"dialnext"
&&
val
==
""
){
alert
(
val
+
"2"
);
outgoingCall
();
}
if
(
key
==
"hangupall"
)
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment