enhancement: elastic skin: allow to drag & drop addresses between address input fields during compose message

pull/7345/head
Tomasz Chiliński 4 years ago
parent 6b5fc8db95
commit 6f8663f7ef
No known key found for this signature in database
GPG Key ID: 6792320218DC84E9

@ -235,6 +235,20 @@ function rcube_elastic_ui()
// This have to be after mail compose feature above
$('[data-recipient-input]').each(function() { recipient_input(this); });
var recipient_inputs = $('#_to, #_cc, #_bcc, #_replyto, #_followupto', $('.compose-headers')).siblings('.recipient-input');
recipient_inputs.each(function() {
$(this).sortable({
appendTo: document.body,
items: "> li.recipient",
handle: false,
connectWith: recipient_inputs,
stop: function(event, ui) {
ui.item.parent().find('li:not(.recipient)').appendTo(ui.item.parent());
ui.item.parent().find('input').trigger($.Event('keydown', { key: "," }));
}
});
});
// Image upload widget
$('.image-upload').each(function() { image_upload_input(this); });

Loading…
Cancel
Save