|
|
@ -3112,9 +3112,9 @@ function rcube_elastic_ui()
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function recipient_input(obj)
|
|
|
|
function recipient_input(obj)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var list, input,
|
|
|
|
var list, input, selection = '',
|
|
|
|
input_len_update = function() {
|
|
|
|
input_len_update = function() {
|
|
|
|
input.css('width', Math.max(40, input.val().length * 15 + 25));
|
|
|
|
input.css('width', Math.max(5, input.val().length * 15 + 10));
|
|
|
|
},
|
|
|
|
},
|
|
|
|
apply_func = function() {
|
|
|
|
apply_func = function() {
|
|
|
|
// update the original input
|
|
|
|
// update the original input
|
|
|
@ -3207,7 +3207,9 @@ function rcube_elastic_ui()
|
|
|
|
|
|
|
|
|
|
|
|
list = $('<ul>').addClass('form-control recipient-input ac-input rounded-left')
|
|
|
|
list = $('<ul>').addClass('form-control recipient-input ac-input rounded-left')
|
|
|
|
.append($('<li>').append(input))
|
|
|
|
.append($('<li>').append(input))
|
|
|
|
.on('click', function() { input.focus(); });
|
|
|
|
// "selection" hack to allow text selection in the recipient box or multiple boxes (#7129)
|
|
|
|
|
|
|
|
.on('mouseup', function () { selection = window.getSelection().toString(); })
|
|
|
|
|
|
|
|
.on('click', function() { if (!selection.length) input.focus(); });
|
|
|
|
|
|
|
|
|
|
|
|
// Hide the original input/textarea
|
|
|
|
// Hide the original input/textarea
|
|
|
|
// Note: we do not remove the original element, and we do not use
|
|
|
|
// Note: we do not remove the original element, and we do not use
|
|
|
|