mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 17:51:13 +08:00
Merge pull request #4300 from aignatov-bio/ai-sci-7001-fix-attachment-menu-elements-allignment
Fix image editor callback after save image [SCI-7019]
This commit is contained in:
commit
ec5879b53f
1 changed files with 2 additions and 1 deletions
|
@ -364,7 +364,8 @@ var ImageEditorModal = (function() {
|
|||
contentType: false,
|
||||
processData: false,
|
||||
success: function(res) {
|
||||
$(`.asset[data-asset-id=${data.id}]`).replaceWith(res.html);
|
||||
$(`.asset[data-asset-id=${data.id}] .image-container img`).replaceWith($(res.html).find('.image-container img'));
|
||||
$(`.asset[data-asset-id=${data.id}] .attachment-preview img`).replaceWith($(res.html).find('attachment-preview img'));
|
||||
$(`.asset[data-asset-id=${data.id}]`).closest('.attachments').trigger('reorder');
|
||||
closeEditor();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue