|
|
@ -1499,11 +1499,21 @@ function rcube_webmail()
|
|
|
|
// switch to another application task
|
|
|
|
// switch to another application task
|
|
|
|
this.switch_task = function(task)
|
|
|
|
this.switch_task = function(task)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
var action, path;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ((path = task.split('/')).length == 2) {
|
|
|
|
|
|
|
|
task = path[0];
|
|
|
|
|
|
|
|
action = path[1];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (this.task === task && task != 'mail')
|
|
|
|
if (this.task === task && task != 'mail')
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
var url = this.get_task_url(task);
|
|
|
|
var url = this.get_task_url(task);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (action)
|
|
|
|
|
|
|
|
url += '&_action=' + action;
|
|
|
|
|
|
|
|
|
|
|
|
if (task == 'mail')
|
|
|
|
if (task == 'mail')
|
|
|
|
url += '&_mbox=INBOX';
|
|
|
|
url += '&_mbox=INBOX';
|
|
|
|
else if (task == 'logout' && !this.env.server_error) {
|
|
|
|
else if (task == 'logout' && !this.env.server_error) {
|
|
|
|