Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
synergy-components
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
synergy-components
Commits
67328481
Commit
67328481
authored
Jun 05, 2023
by
Samir Sadyhov
🤔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UTILS.js - поправлен заголовок диалога завершения процесса
parent
218b8eb5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
constructor/library/UTILS.js
constructor/library/UTILS.js
+14
-4
No files found.
constructor/library/UTILS.js
View file @
67328481
...
@@ -165,15 +165,25 @@ UTILS.getSmallModalDialog = (title, body) => {
...
@@ -165,15 +165,25 @@ UTILS.getSmallModalDialog = (title, body) => {
UTILS
.
getDialogFinishProcess
=
async
(
title
,
buttons
,
typeID
,
handler
)
=>
{
UTILS
.
getDialogFinishProcess
=
async
(
title
,
buttons
,
typeID
,
handler
)
=>
{
const
dialog
=
$
(
'
<div class="uk-flex-top" uk-modal>
'
);
const
dialog
=
$
(
'
<div class="uk-flex-top" uk-modal>
'
);
const
header
=
$
(
`<div class="uk-modal-header"><h3>
${
title
}
</h3></div>`
);
const
header
=
$
(
'
<div>
'
,
{
class
:
'
uk-modal-header
'
,
style
:
'
width: 100%; height: 40px;
'
});
const
titleHeader
=
$
(
'
<h3>
'
);
const
md
=
$
(
'
<div class="uk-modal-dialog uk-margin-auto-vertical">
'
);
const
md
=
$
(
'
<div class="uk-modal-dialog uk-margin-auto-vertical">
'
);
const
modalBody
=
$
(
'
<div class="uk-modal-body" uk-overflow-auto>
'
);
const
modalBody
=
$
(
'
<div class="uk-modal-body" uk-overflow-auto>
'
);
const
footer
=
$
(
'
<div class="uk-modal-footer uk-text-right">
'
);
const
footer
=
$
(
'
<div class="uk-modal-footer uk-text-right">
'
);
const
commentText
=
i18n
.
tr
(
"
Комментарий
"
);
const
commentInput
=
$
(
`<textarea class="uk-textarea" rows="5" placeholder="
${
i18n
.
tr
(
"
Комментарий
"
)}
"></textarea>`
);
const
commentInput
=
$
(
`<textarea class="uk-textarea" rows="5" placeholder="
${
commentText
}
"></textarea>`
);
if
(
typeID
!==
'
acquaintance-single
'
)
modalBody
.
append
(
$
(
'
<div class="uk-margin">
'
).
append
(
commentInput
));
if
(
typeID
!==
'
acquaintance-single
'
)
modalBody
.
append
(
$
(
'
<div class="uk-margin">
'
).
append
(
commentInput
));
titleHeader
.
text
(
title
);
titleHeader
.
css
({
'
white-space
'
:
'
nowrap
'
,
'
overflow
'
:
'
hidden
'
,
'
text-overflow
'
:
'
ellipsis
'
,
'
width
'
:
'
calc(100% - 50px)
'
});
header
.
append
(
titleHeader
);
dialog
.
append
(
md
);
dialog
.
append
(
md
);
md
.
append
(
header
).
append
(
modalBody
).
append
(
footer
);
md
.
append
(
header
).
append
(
modalBody
).
append
(
footer
);
...
@@ -200,7 +210,7 @@ UTILS.getFullModalDialog = (title = '', body) => {
...
@@ -200,7 +210,7 @@ UTILS.getFullModalDialog = (title = '', body) => {
'
width
'
:
'
calc(100% - 50px)
'
'
width
'
:
'
calc(100% - 50px)
'
});
});
header
.
append
(
titleHeader
)
header
.
append
(
titleHeader
)
;
md
.
append
(
md
.
append
(
`<button class="uk-modal-close-full uk-close-custom" type="button" uk-close></button>`
,
`<button class="uk-modal-close-full uk-close-custom" type="button" uk-close></button>`
,
...
...
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