|
|
@ -1254,17 +1254,21 @@ function rcube_elastic_ui()
|
|
|
|
item = $(item);
|
|
|
|
item = $(item);
|
|
|
|
|
|
|
|
|
|
|
|
if (!item.children('.drop').length) {
|
|
|
|
if (!item.children('.drop').length) {
|
|
|
|
|
|
|
|
var label = rcmail.gettext('options');
|
|
|
|
var button = $('<a>')
|
|
|
|
var button = $('<a>')
|
|
|
|
.attr({
|
|
|
|
.attr({
|
|
|
|
href: '#',
|
|
|
|
href: '#',
|
|
|
|
tabindex: 0,
|
|
|
|
tabindex: 0,
|
|
|
|
'class': 'button icon dropdown skip-content',
|
|
|
|
title: label,
|
|
|
|
'data-popup': 'attachment-menu',
|
|
|
|
'class': 'button icon dropdown skip-content'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.append($('<span class="inner">').text('Show options')) // TODO: Localize "Show options"
|
|
|
|
.on('click keypress', function(e) {
|
|
|
|
|
|
|
|
if (e.type != 'keypress' || rcube_event.get_keycode(e) == 13) {
|
|
|
|
|
|
|
|
attachmentmenu($('#attachmentmenu'), button, e);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.append($('<span>').attr('class', 'inner').text(label))
|
|
|
|
.appendTo(item);
|
|
|
|
.appendTo(item);
|
|
|
|
|
|
|
|
|
|
|
|
popup_init(button);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|