Elastic: On mobile/tablet jump to the list on folder selection (#6415)

pull/6486/head
Aleksander Machniak 6 years ago
parent b8a0a6c57a
commit 43baa575de

@ -1138,6 +1138,8 @@ function rcube_elastic_ui()
show_list();
}
env.content_lock = false;
// display current folder name in list header
if (e.title) {
$('.header > .header-title', layout.list).text(e.title);
@ -1147,6 +1149,10 @@ function rcube_elastic_ui()
var list_handler = function(e) {
var args = {};
if (rcmail.env.task == 'addressbook' || rcmail.env.task == 'mail') {
args.force = true;
}
// display current folder name in list header
if (rcmail.env.task == 'mail' && !rcmail.env.action) {
var name = $.type(e) == 'string' ? e : rcmail.env.mailbox,
@ -1182,6 +1188,7 @@ function rcube_elastic_ui()
.addEventListener('afterlistsearch', list_handler)
// plugins
.addEventListener('show-list', function(e) {
e.force = true;
common_list_handler(e);
})
.addEventListener('show-content', function(e) {

Loading…
Cancel
Save