|
|
@ -2855,20 +2855,27 @@ function rcube_elastic_ui()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
item = $(item);
|
|
|
|
item = $(item);
|
|
|
|
|
|
|
|
|
|
|
|
if (!item.is('.no-menu') && !item.children('.drop').length) {
|
|
|
|
if (!item.is('.no-menu') && !item.children('.dropdown').length) {
|
|
|
|
var label = rcmail.gettext('options');
|
|
|
|
var label = rcmail.gettext('options'),
|
|
|
|
var button = $('<a>')
|
|
|
|
fname = item.find('a.filename');
|
|
|
|
.attr({
|
|
|
|
|
|
|
|
|
|
|
|
var button = $('<a>').attr({
|
|
|
|
href: '#',
|
|
|
|
href: '#',
|
|
|
|
tabindex: 0,
|
|
|
|
tabindex: fname.attr('tabindex') || 0,
|
|
|
|
title: label,
|
|
|
|
title: label,
|
|
|
|
'class': 'button icon dropdown skip-content'
|
|
|
|
'class': 'button icon dropdown skip-content'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.on('click', function(e) {
|
|
|
|
.on('click', function(e) {
|
|
|
|
return attachmentmenu($('#attachmentmenu'), button, e);
|
|
|
|
return attachmentmenu($('#attachmentmenu'), button, e);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.append($('<span>').attr('class', 'inner').text(label))
|
|
|
|
.append($('<span>').attr('class', 'inner').text(label));
|
|
|
|
.appendTo(item);
|
|
|
|
|
|
|
|
|
|
|
|
if (fname.length) {
|
|
|
|
|
|
|
|
button.insertAfter(fname);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
button.appendTo(item);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|