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;
}
// set unread count in folder model
getFolder().count = (unreadCount && unreadCount > 0) ? unreadCount : undefined;
getFolder().count = unreadCount;
$scope.$apply();
emailDao.imapSync(options, function(err) {

View File

@ -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;
}
//