Localize "Options" label on attachments list options button

pull/5838/head
Aleksander Machniak 8 years ago
parent 2ba2b1828c
commit f9e53d9574

@ -7,3 +7,4 @@
<script type="text/javascript" src="/ui.js"></script> <script type="text/javascript" src="/ui.js"></script>
<roundcube:add_label name="errortitle" /> <roundcube:add_label name="errortitle" />
<roundcube:add_label name="toggleadvancedoptions" /> <roundcube:add_label name="toggleadvancedoptions" />
<roundcube:add_label name="options" />

@ -896,7 +896,10 @@ function rcube_mail_ui()
item = $(item); item = $(item);
if (!item.children('.drop').length) if (!item.children('.drop').length)
item.append($('<a class="drop skip-content" tabindex="0" aria-haspopup="true">Show options</a>') var label = rcmail.gettext('options');
item.append($('<a>')
.attr({'class': 'drop skip-content', tabindex: 0, 'aria-haspopup': true, title: label})
.text(label)
.on('click keypress', function(e) { .on('click keypress', function(e) {
if (e.type != 'keypress' || rcube_event.get_keycode(e) == 13) { if (e.type != 'keypress' || rcube_event.get_keycode(e) == 13) {
attachmentmenu(this, e); attachmentmenu(this, e);

Loading…
Cancel
Save