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