Archive: Fix missing Archive icon in folder selector popup in Elastic

pull/6977/head
Aleksander Machniak 5 years ago
parent 46ee823fd9
commit 2213efc850

@ -6,6 +6,7 @@ CHANGELOG Roundcube Webmail
- Elastic: Fix initial focus on recipients input in mail compose screen - Elastic: Fix initial focus on recipients input in mail compose screen
- Redis: Improve error handling and phpredis 5.X support (#6888) - Redis: Improve error handling and phpredis 5.X support (#6888)
- Archive: Fix bug where next email was not displayed after Archive button use (#6965) - Archive: Fix bug where next email was not displayed after Archive button use (#6965)
- Archive: Fix missing Archive icon in folder selector popup in Elastic
- Fix bug where cache keys were not case-sensitive on MySQL/MSSQL (#6942) - Fix bug where cache keys were not case-sensitive on MySQL/MSSQL (#6942)
- Fix so an error is loogged when encryption fails (#6948) - Fix so an error is loogged when encryption fails (#6948)

@ -66,16 +66,16 @@ if (window.rcmail) {
else else
li = rcmail.get_folder_li(rcmail.env.archive_folder, '', true); li = rcmail.get_folder_li(rcmail.env.archive_folder, '', true);
if (li) { if (li)
$(li).addClass('archive'); $(li).addClass('archive');
// in folder selector popup // in folder selector popup
rcmail.addEventListener('menu-open', function(p) { rcmail.addEventListener('menu-open', function(p) {
if (p.name == 'folder-selector') { if (p.name == 'folder-selector') {
$('a[rel="' + $('a', li).attr('rel') + '"]', p.obj).parent().addClass('archive'); var search = rcmail.env.archive_folder;
$('a', p.obj).filter(function() { return $(this).data('id') == search; }).parent().addClass('archive');
} }
}); });
} }
}
}); });
} }

Loading…
Cancel
Save