mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
Shuffle some stuff around so switching folders works too.
This commit is contained in:
parent
1f438436e1
commit
46253ec346
@ -997,16 +997,8 @@ app.classes.mail = AppJS.extend(
|
|||||||
*/
|
*/
|
||||||
mail_changeProfile: function(folder,_widget) {
|
mail_changeProfile: function(folder,_widget) {
|
||||||
// alert(folder);
|
// alert(folder);
|
||||||
var nm = _widget.getRoot().getWidgetById(this.nm_index);
|
|
||||||
if(nm)
|
|
||||||
{
|
|
||||||
nm.activeFilters['selectedFolder'] = folder;
|
|
||||||
// Changing dataset entirely, force a reset
|
|
||||||
nm.controller.reset();
|
|
||||||
}
|
|
||||||
egw.json('mail.mail_ui.ajax_changeProfile',[folder])
|
egw.json('mail.mail_ui.ajax_changeProfile',[folder])
|
||||||
.sendRequest();
|
.sendRequest();
|
||||||
this.mail_refreshMessageGrid();
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
@ -1026,12 +1018,8 @@ app.classes.mail = AppJS.extend(
|
|||||||
if (!(img.search(eval('/'+'thunderbird'+'/'))<0))
|
if (!(img.search(eval('/'+'thunderbird'+'/'))<0))
|
||||||
{
|
{
|
||||||
rv = this.mail_changeProfile(folder,_widget);
|
rv = this.mail_changeProfile(folder,_widget);
|
||||||
if (rv)
|
|
||||||
{
|
|
||||||
return rv;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (_widget.event_args.length==2)
|
else if (_widget.event_args.length==2)
|
||||||
{
|
{
|
||||||
folder = _widget.event_args[1];
|
folder = _widget.event_args[1];
|
||||||
_widget.set_value(folder);
|
_widget.set_value(folder);
|
||||||
@ -1042,27 +1030,28 @@ app.classes.mail = AppJS.extend(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
var nm = _widget.getRoot().getWidgetById(this.nm_index);
|
var nm = _widget.getRoot().getWidgetById(this.nm_index);
|
||||||
nm.activeFilters["selectedFolder"] = folder;
|
if(nm)
|
||||||
//nm.applyFilters();// its done in refrefreshMessageGrid
|
|
||||||
var msg = _widget.getRoot().getWidgetById('msg');
|
|
||||||
if (msg)
|
|
||||||
{
|
{
|
||||||
window.clearInterval(this.doStatus);
|
nm.activeFilters['selectedFolder'] = folder;
|
||||||
displayname = _widget.getSelectedLabel();
|
// Changing dataset entirely, force a reset
|
||||||
inBraket = displayname.search(/\(/);
|
nm.controller.reset();
|
||||||
if (inBraket!=-1)
|
|
||||||
{
|
|
||||||
outBraket = displayname.search(/\)/);
|
|
||||||
if (outBraket!=-1)
|
|
||||||
{
|
|
||||||
displayname = displayname.replace(/\((.*?)\)/,"");
|
|
||||||
displayname = displayname.replace(/<b>/,"");
|
|
||||||
displayname = displayname.replace(/<\/b>/,"");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
myMsg = (displayname?displayname:folder)+' '+this.egw.lang('selected');
|
|
||||||
app.mail.app_refresh(myMsg, 'mail');
|
|
||||||
}
|
}
|
||||||
|
window.clearInterval(this.doStatus);
|
||||||
|
displayname = _widget.getSelectedLabel();
|
||||||
|
inBraket = displayname.search(/\(/);
|
||||||
|
if (inBraket!=-1)
|
||||||
|
{
|
||||||
|
outBraket = displayname.search(/\)/);
|
||||||
|
if (outBraket!=-1)
|
||||||
|
{
|
||||||
|
displayname = displayname.replace(/\((.*?)\)/,"");
|
||||||
|
displayname = displayname.replace(/<b>/,"");
|
||||||
|
displayname = displayname.replace(/<\/b>/,"");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
myMsg = (displayname?displayname:folder)+' '+this.egw.lang('selected');
|
||||||
|
egw_message(myMsg);
|
||||||
|
|
||||||
//mail_refreshMessageGrid();// its done in refreshFolderStatus already
|
//mail_refreshMessageGrid();// its done in refreshFolderStatus already
|
||||||
this.mail_refreshFolderStatus(folder,'forced');
|
this.mail_refreshFolderStatus(folder,'forced');
|
||||||
this.mail_refreshQuotaDisplay(server[0]);
|
this.mail_refreshQuotaDisplay(server[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user