Single doc mode: edit on click

This commit is contained in:
Cohee 2023-12-09 16:01:43 +02:00
parent 44ac2ca4e6
commit ad9130b538
2 changed files with 6 additions and 1 deletions

View File

@ -214,7 +214,7 @@ body.bubblechat .mes[is_user="true"] {
/* Document Style */
body.documentstyle #chat .mes:not(.last_mes) {
padding: 0 10px;
padding: 5px 10px 0px 10px;
}
body.documentstyle .last_mes {

View File

@ -400,6 +400,11 @@ jQuery(function () {
callPopup(wrapper, 'text', '', { wide: true, large: true });
});
$(document).on('click', 'body.documentstyle .mes .mes_text', function () {
if ($('.edit_textarea').length) return;
$(this).closest('.mes').find('.mes_edit').trigger('click');
});
$('#file_form_input').on('change', onFileAttach);
$('#file_form').on('reset', function () {
$('#file_form').addClass('displayNone');