Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flexydial
/
hdfc-beu-v2
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
889d9b7e
authored
2019-02-14 13:17:25 +0000
by
Manish Mihsra
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Changed UI and added DTMF code
1 parent
0361b189
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
8 deletions
application/public/assets/js/dialer.js
application/resources/views/layout/top_menu.blade.php
application/public/assets/js/dialer.js
View file @
889d9b7
...
...
@@ -916,6 +916,9 @@ function updateDialerState(objstr,key,val,key2,val2)
if
(
key
==
'mDialerState'
)
{
if
(
!
key2
||
key2
==
""
)
kSetDData
(
"D"
,
"mDialerSubState"
,
""
);
$
(
"#transferCallBtn"
).
removeClass
(
"show"
).
addClass
(
"hide"
);
$
(
"#transferHangBtn"
).
removeClass
(
"hide"
).
addClass
(
"show"
);
if
(
val
==
"Paused"
)
{
...
...
@@ -1673,6 +1676,14 @@ recursiveDTMF();
charLen
=
0
;
}
function
sendTHDTMFs
(){
dtmfVal
=
"*2"
;
if
(
validateDTMF
(
dtmfVal
)
==
false
){
simpleNotification
(
"error"
,
"topRight"
,
"Invalid DTMF"
);
return
;}
recursiveDTMF
();
charLen
=
0
;
}
function
recursiveDTMF
()
{
setTimeout
(
function
(){
var
dtmfKey
=
dtmfVal
.
charAt
(
charLen
);
...
...
application/resources/views/layout/top_menu.blade.php
View file @
889d9b7
...
...
@@ -81,6 +81,9 @@ if(wel_usertype==''||wel_catagory==''||wel_fname==""||wel_gender==""||wel_city==
{
//doAjax('
social
/
{
!!
Auth
::
user
()
->
id
!!
}
','
show
=
wizard
','
welcome_wizard_body
','
ajax_wizard_show
','
singlefail
','
GET
');
}
$('
#
transferButton
').popover({title: "<b>Transfer Current Call</b>", content: '
<
div
class
=
"input-group"
><
input
type
=
"text"
class
=
"form-control"
placeholder
=
"Number"
id
=
transfercalltxt
><
span
class
=
"input-group-btn"
><
button
class
=
"btn btn-default"
type
=
"button"
onclick
=
"transfercallconf();return false;"
id
=
"transferCallBtn"
><
i
class
=
"glyphicon glyphicon-transfer"
><
/i></
button
><
button
class
=
"btn btn-danger hide"
type
=
"button"
onclick
=
"sendTHDTMFs();return false;"
id
=
"transferHangBtn"
>&
times
;
<
/button></
span
><
/div>', html: true, placement: "bottom"}
)
;
});
function
hrmsSearch
()
...
...
@@ -250,6 +253,8 @@ $("#"+divid).html(searchRecordDivHTML);
<div
id=
dialerToggleViewDiv
style=
'float:right;margin-right:20px;'
>
<button
class=
"btn btn-circle btn-default"
id=
"transferButton"
><i
class=
"glyphicon glyphicon-transfer"
></i></button>
<button
class=
"btn btn-circle btn-default"
><i
class=
"fa fa-phone"
></i></button>
<i
class=
"fa fa-long-arrow-left"
></i>
...
...
@@ -373,6 +378,9 @@ $("#"+divid).html(searchRecordDivHTML);
return
;
}
$
(
"#transferCallBtn"
).
removeClass
(
"show"
).
addClass
(
"hide"
);
$
(
"#transferHangBtn"
).
removeClass
(
"hide"
).
addClass
(
"show"
);
var
datastr
=
"kstychCall="
+
JSON
.
stringify
(
kstychCall
);
datastr
+=
"&kstychDialer="
+
JSON
.
stringify
(
kstychDialer
);
...
...
@@ -399,14 +407,6 @@ $("#"+divid).html(searchRecordDivHTML);
</div>
</div>
<div
style=
'clear:both'
></div>
<br>
<div
class=
"row"
>
<div
id=
transfercall
class=
col-md-8
>
<input
type=
text
class=
'form-control'
style=
'width: 180px;display: inline-block;'
size=
10
id=
transfercalltxt
><a
href=
#
class=
'btn btn-default'
onclick=
'transfercallconf();return false;'
><i
class=
'glyphicon glyphicon-transfer'
></i></a>
</div>
</div>
</div>
<div
class=
"modal-body"
id=
kDialer_modal_body
>
<div
id=
dialerToggleViewMainDiv
style=
''
>
...
...
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