mirror of
https://github.com/moparisthebest/mail
synced 2024-11-26 19:02:20 -05:00
fix ciphertext preview reload
This commit is contained in:
parent
558ffb4599
commit
f3b4140f81
@ -100,7 +100,7 @@ define(function(require) {
|
||||
return;
|
||||
}
|
||||
// set unread count in folder model
|
||||
getFolder().count = (unreadCount && unreadCount > 0) ? unreadCount : undefined;
|
||||
getFolder().count = unreadCount;
|
||||
$scope.$apply();
|
||||
|
||||
emailDao.imapSync(options, function(err) {
|
||||
|
@ -24,6 +24,7 @@ define(function(require) {
|
||||
resetFields();
|
||||
if ($scope.writerReply) {
|
||||
fillFields($scope.selected);
|
||||
$scope.updatePreview();
|
||||
}
|
||||
});
|
||||
|
||||
@ -31,7 +32,10 @@ define(function(require) {
|
||||
$scope.writerTitle = 'New email';
|
||||
$scope.to = undefined;
|
||||
$scope.subject = undefined;
|
||||
$scope.body = undefined;
|
||||
if ($scope.$$childTail) {
|
||||
$scope.$$childTail.body = '';
|
||||
}
|
||||
$scope.ciphertextPreview = undefined;
|
||||
}
|
||||
|
||||
function fillFields(re) {
|
||||
@ -54,7 +58,7 @@ define(function(require) {
|
||||
bodyRows.forEach(function(row) {
|
||||
body += (!re.html) ? '<br>' + row : '';
|
||||
});
|
||||
$scope.body = body;
|
||||
$scope.$$childTail.body = body;
|
||||
}
|
||||
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user