Refresh the list if the move/copy target is the current folder so the new mails show

This commit is contained in:
Nathan Gray 2014-12-15 17:26:04 +00:00
parent 5d3370fe66
commit 8239ae9b2d

View File

@ -2872,10 +2872,19 @@ app.classes.mail = AppJS.extend(
// will close when the selection callback fires instead of load the // will close when the selection callback fires instead of load the
// next message // next message
nm.controller._selectionMgr.resetSelection(); nm.controller._selectionMgr.resetSelection();
// Server response may contain refresh, but it's always delete
// Refresh list if current view is the target (happens when pasting)
var tree = self.et2.getWidgetById('nm[foldertree]');
if(nm && tree && target == tree.getValue())
{
// Can't trust the sorting, needs to be full refresh
nm.refresh();
}
}) })
.sendRequest(); .sendRequest();
this.mail_setRowClass(_senders,'deleted'); this.mail_setRowClass(_senders,'deleted');
// Server response contains refresh // Server response may contain refresh, not needed here
}, },
/** /**