mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
* Mail: Fix deleting or moving multiple mail to another folder did not update the list
This commit is contained in:
parent
f87a5e0b5d
commit
8628b50ffb
@ -5538,7 +5538,11 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
|
|||||||
{
|
{
|
||||||
$msg = lang('moved %1 message(s) from %2 to %3',($messageList=='all'||$_messageList['all']?($filtered?lang('all filtered'):lang('all')):count($messageList)),lang($folder),lang($targetFolder));
|
$msg = lang('moved %1 message(s) from %2 to %3',($messageList=='all'||$_messageList['all']?($filtered?lang('all filtered'):lang('all')):count($messageList)),lang($folder),lang($targetFolder));
|
||||||
if ($_return) return $msg;
|
if ($_return) return $msg;
|
||||||
$response->call('egw.refresh',$msg,'mail',$messageListForRefresh,'delete');
|
foreach($messageListForRefresh as $mail_id)
|
||||||
|
{
|
||||||
|
$response->call('egw.refresh','','mail',$mail_id, 'delete');
|
||||||
|
}
|
||||||
|
$response->message($msg,'success');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($changeFolderActions == true)
|
if ($changeFolderActions == true)
|
||||||
|
@ -2189,11 +2189,7 @@ app.classes.mail = AppJS.extend(
|
|||||||
mail_deleteMessagesShowResult: function(_msg)
|
mail_deleteMessagesShowResult: function(_msg)
|
||||||
{
|
{
|
||||||
// Update list
|
// Update list
|
||||||
var ids = [];
|
|
||||||
for (var i = 0; i < _msg['msg'].length; i++)
|
|
||||||
{
|
|
||||||
ids.push(_msg['msg'][i].replace(/mail::/,''));
|
|
||||||
}
|
|
||||||
//this.egw.message(_msg['egw_message']);
|
//this.egw.message(_msg['egw_message']);
|
||||||
if (_msg['all'])
|
if (_msg['all'])
|
||||||
{
|
{
|
||||||
@ -2201,7 +2197,10 @@ app.classes.mail = AppJS.extend(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.egw.refresh(_msg['egw_message'],'mail',ids,'delete');
|
for (var i = 0; i < _msg['msg'].length; i++)
|
||||||
|
{
|
||||||
|
this.egw.refresh(_msg['egw_message'], 'mail', _msg['msg'][i].replace(/mail::/,''), 'delete');
|
||||||
|
}
|
||||||
|
|
||||||
// Nextmatch automatically selects the next row and calls preview.
|
// Nextmatch automatically selects the next row and calls preview.
|
||||||
// Unselect it and thanks to the timeout selectionMgr uses, preview
|
// Unselect it and thanks to the timeout selectionMgr uses, preview
|
||||||
|
Loading…
Reference in New Issue
Block a user