|
|
@ -1316,7 +1316,7 @@ function rcube_elastic_ui()
|
|
|
|
email = ' <' + email + '>';
|
|
|
|
email = ' <' + email + '>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
email_element.text((name ? email : '') + rcmail.env.recipients_separator);
|
|
|
|
email_element.text((name ? email : '') + ',');
|
|
|
|
recipient.attr({'class': 'recipient', contenteditable: false, title: name ? (name + email) : null})
|
|
|
|
recipient.attr({'class': 'recipient', contenteditable: false, title: name ? (name + email) : null})
|
|
|
|
.append([name_element, email_element, link]);
|
|
|
|
.append([name_element, email_element, link]);
|
|
|
|
|
|
|
|
|
|
|
@ -1418,8 +1418,8 @@ function rcube_elastic_ui()
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Here we add a recipient box when the separator character was pressed
|
|
|
|
// Here we add a recipient box when the separator character (,;) was pressed
|
|
|
|
else if (e.keyCode == 188) {
|
|
|
|
else if (e.keyCode == 188 || e.keyCode == 59) {
|
|
|
|
if (update_func()) {
|
|
|
|
if (update_func()) {
|
|
|
|
focus_func();
|
|
|
|
focus_func();
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
@ -1476,7 +1476,6 @@ function rcube_elastic_ui()
|
|
|
|
function recipient_input_parser(text)
|
|
|
|
function recipient_input_parser(text)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var recipients = [],
|
|
|
|
var recipients = [],
|
|
|
|
delim = rcmail.env.recipients_delimiter + ';',
|
|
|
|
|
|
|
|
address_rx_part = '(\\S+|("[^"]+"))@\\S+',
|
|
|
|
address_rx_part = '(\\S+|("[^"]+"))@\\S+',
|
|
|
|
recipient_rx1 = new RegExp('(<' + address_rx_part + '>)'),
|
|
|
|
recipient_rx1 = new RegExp('(<' + address_rx_part + '>)'),
|
|
|
|
recipient_rx2 = new RegExp('(' + address_rx_part + ')'),
|
|
|
|
recipient_rx2 = new RegExp('(' + address_rx_part + ')'),
|
|
|
@ -1552,7 +1551,7 @@ function rcube_elastic_ui()
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Adds some logic to the contact photo widget
|
|
|
|
* Adds logic to the contact photo widget
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function image_upload_input(obj)
|
|
|
|
function image_upload_input(obj)
|
|
|
|
{
|
|
|
|
{
|
|
|
|