From aae1189dbfb8fcff62262a4c72957112ca2a1ec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Chili=C5=84ski?= Date: Sat, 25 Apr 2020 01:07:35 +0200 Subject: [PATCH] enhancement: elastic skin: allow to drag & drop addresses between address input fields during compose message (update source list address input field to) --- skins/elastic/ui.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index 83a470620..2b9481856 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -242,9 +242,12 @@ function rcube_elastic_ui() items: "> li.recipient", handle: false, connectWith: recipient_inputs, - stop: function(event, ui) { + receive: function(event, ui) { ui.item.parent().find('li:not(.recipient)').appendTo(ui.item.parent()); ui.item.parent().find('input').trigger($.Event('keydown', { key: "," })); + if (ui.sender) { + ui.sender.find('input').trigger($.Event('keydown', { key: "," })); + } } }); });