Skip to content

Commit

Permalink
Merge branch 'release/2024.02.01.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien committed Feb 1, 2024
2 parents 247b4c9 + af112bb commit 0ac1f7a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dossierfacile-bo/src/main/resources/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ $(document).ready(function () {
$('#form-change-document-status' + documentId).submit();
})

function updateMessageForm() {
var id = $('.chat').attr('data-id');
var nameAdmin = $('.chat').attr('data-nameAdmin');
function updateMessageForm(target) {
var id = target.attr('data-id');
var nameAdmin = target.attr('data-nameAdmin');
$('#tenant-message' + id).load("/bo/message/tenant/" + id, function () {
$("#messageForm" + id).submit(function (e) {
var id1 = $(this).attr('data-id');
Expand All @@ -240,10 +240,10 @@ $(document).ready(function () {
});
}
$('.chat').click(function (e) {
updateMessageForm();
updateMessageForm($(this));
});
if ($('.chat') !== undefined && $('.chat').attr('aria-expanded') === 'true') {
updateMessageForm();
updateMessageForm($('.chat'));
}

$(document).keydown(function (event) {
Expand Down

0 comments on commit 0ac1f7a

Please sign in to comment.