mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
When moving mail, remove any cache for target directory
This commit is contained in:
parent
0eb8854eb3
commit
b2544e1b2d
@ -2764,6 +2764,21 @@ app.classes.mail = AppJS.extend(
|
||||
var target = _action.id == 'drop_move_mail' ? _target.iface.id : _action.id.substr(5);
|
||||
var messages = this.mail_getFormData(_senders);
|
||||
if (typeof _allMessagesChecked=='undefined') _allMessagesChecked=false;
|
||||
|
||||
// Directly delete any cache for target
|
||||
if(window.localStorage)
|
||||
{
|
||||
for(var i = 0; i < window.localStorage.length; i++)
|
||||
{
|
||||
var key = window.localStorage.key(i);
|
||||
|
||||
// Find directly by what the key would look like
|
||||
if(key.indexOf('cached_fetch_mail::{"selectedFolder":"'+_target.id+'"') == 0)
|
||||
{
|
||||
window.localStorage.removeItem(key);
|
||||
}
|
||||
}
|
||||
}
|
||||
// TODO: Write move/copy function which cares about doing the same stuff
|
||||
// as the "onNodeSelect" function!
|
||||
messages['all'] = _allMessagesChecked;
|
||||
|
Loading…
Reference in New Issue
Block a user