mirror of
https://github.com/moparisthebest/mail
synced 2024-11-23 01:12:19 -05:00
fix ciphertext preview reload
This commit is contained in:
parent
558ffb4599
commit
f3b4140f81
@ -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) {
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user