1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-23 09:22:23 -05:00

fix ciphertext preview reload

This commit is contained in:
Tankred Hase 2013-10-19 03:55:12 +02:00
parent 558ffb4599
commit f3b4140f81
2 changed files with 7 additions and 3 deletions

View File

@ -100,7 +100,7 @@ define(function(require) {
return; return;
} }
// set unread count in folder model // set unread count in folder model
getFolder().count = (unreadCount && unreadCount > 0) ? unreadCount : undefined; getFolder().count = unreadCount;
$scope.$apply(); $scope.$apply();
emailDao.imapSync(options, function(err) { emailDao.imapSync(options, function(err) {

View File

@ -24,6 +24,7 @@ define(function(require) {
resetFields(); resetFields();
if ($scope.writerReply) { if ($scope.writerReply) {
fillFields($scope.selected); fillFields($scope.selected);
$scope.updatePreview();
} }
}); });
@ -31,7 +32,10 @@ define(function(require) {
$scope.writerTitle = 'New email'; $scope.writerTitle = 'New email';
$scope.to = undefined; $scope.to = undefined;
$scope.subject = undefined; $scope.subject = undefined;
$scope.body = undefined; if ($scope.$$childTail) {
$scope.$$childTail.body = '';
}
$scope.ciphertextPreview = undefined;
} }
function fillFields(re) { function fillFields(re) {
@ -54,7 +58,7 @@ define(function(require) {
bodyRows.forEach(function(row) { bodyRows.forEach(function(row) {
body += (!re.html) ? '<br>' + row : ''; body += (!re.html) ? '<br>' + row : '';
}); });
$scope.body = body; $scope.$$childTail.body = body;
} }
// //