Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AmiBX
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bitrix
AmiBX
Commits
820ebd02
Commit
820ebd02
authored
Jan 10, 2022
by
Kulya
😊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Показ звонков в QUEUE3 num
parent
3f6e4d9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
footer_queues.js
template/js/footer_queues.js
+7
-1
No files found.
template/js/footer_queues.js
View file @
820ebd02
...
...
@@ -985,7 +985,7 @@ function getQuesue() {
queueCallView
(
data
,
key
)
{
const
view
=
$
(
`<div class="row align-items-center p-1 m-0 mt-1"
style="background:
${
data
.
bgColor
}
">
${
keyView
(
key
)}
${
phoneView
(
data
.
phone1
)}
${
timeView
(
data
.
duration
)}
${
keyView
(
key
)}
${
phoneView
(
data
.
phone1
)}
->
${
phoneView
(
data
.
phone2
)}
${
timeView
(
data
.
duration
)}
</div>`
)
function
keyView
(
val
=
""
)
{
...
...
@@ -1003,6 +1003,12 @@ function getQuesue() {
return
view
}
function
phoneToView
(
phone
=
""
)
{
if
(
!
phone
.
length
){
return
""
;}
const
view
=
`<div class="col-4 p-0">
${
phone
}
</div>`
return
view
}
function
timeView
(
duration
=
""
)
{
const
view
=
`<div class="col-2 p-1 bg-light rounded d-flex justify-content-center ml-auto">
${
duration
.
substr
(
-
5
)}
</div>`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment