Elastic: Set list header to current folder in Tasks
This commit is contained in:
parent
0518dd874a
commit
963e66b1e4
2 changed files with 3 additions and 2 deletions
|
@ -1183,7 +1183,7 @@ function rcube_kolab_notes_ui(settings)
|
||||||
rcmail.enable_command('save', false);
|
rcmail.enable_command('save', false);
|
||||||
|
|
||||||
if (!list) {
|
if (!list) {
|
||||||
rcmail.triggerEvent('show-list');
|
rcmail.triggerEvent('show-list', {force: true});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -201,6 +201,7 @@ function rcube_tasklist_ui(settings)
|
||||||
rcmail.enable_command('list-showurl', me.tasklists[node.id] && !!me.tasklists[node.id].caldavurl);
|
rcmail.enable_command('list-showurl', me.tasklists[node.id] && !!me.tasklists[node.id].caldavurl);
|
||||||
me.selected_list = node.id;
|
me.selected_list = node.id;
|
||||||
rcmail.update_state({source: node.id});
|
rcmail.update_state({source: node.id});
|
||||||
|
rcmail.triggerEvent('show-list', {title: me.tasklists[node.id].name});
|
||||||
});
|
});
|
||||||
tasklists_widget.addEventListener('subscribe', function(p) {
|
tasklists_widget.addEventListener('subscribe', function(p) {
|
||||||
var list;
|
var list;
|
||||||
|
@ -1413,7 +1414,7 @@ function rcube_tasklist_ui(settings)
|
||||||
// Elastic
|
// Elastic
|
||||||
if (!$('.selected', rcmail.gui_objects.resultlist).length) {
|
if (!$('.selected', rcmail.gui_objects.resultlist).length) {
|
||||||
$('#taskedit').parents('.watermark').removeClass('formcontainer');
|
$('#taskedit').parents('.watermark').removeClass('formcontainer');
|
||||||
rcmail.triggerEvent('show-list');
|
rcmail.triggerEvent('show-list', {force: true});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue