Commit 67328481 authored by Samir Sadyhov's avatar Samir Sadyhov 🤔

UTILS.js - поправлен заголовок диалога завершения процесса

parent 218b8eb5
...@@ -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>`,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment