Fix recipient rename/delete after drag'n'drop, also keep the order

pull/7370/head
Aleksander Machniak 5 years ago
parent 09848515fe
commit 1aebb1985c

@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail CHANGELOG Roundcube Webmail
=========================== ===========================
- Elastic: Moving single recipients between recipient inputs with drag-n-drop (#5069)
- Support RFC8438: IMAP STATUS=SIZE - for faster folder size calculation (#7269) - Support RFC8438: IMAP STATUS=SIZE - for faster folder size calculation (#7269)
- MySQL: Use utf8mb4 charset and utf8mb4_unicode_ci collation (#6535, #7113) - MySQL: Use utf8mb4 charset and utf8mb4_unicode_ci collation (#6535, #7113)
- Support for language codes up to 16 chars long (e.g. es-419) in database schema (#6851) - Support for language codes up to 16 chars long (e.g. es-419) in database schema (#6851)

@ -3258,8 +3258,9 @@ function rcube_elastic_ui()
items: "> .recipient", items: "> .recipient",
connectWith: '.recipient-input', connectWith: '.recipient-input',
receive: function(event, ui) { receive: function(event, ui) {
input.parent().appendTo(list); var recipient = list.text();
apply_func(); list.find('.recipient').remove();
update_func(recipient);
if (ui.sender) { if (ui.sender) {
ui.sender.find('input').change(); ui.sender.find('input').change();
} }

Loading…
Cancel
Save