mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Cache refactoring
Contacts settings fixes
This commit is contained in:
parent
35ce0be771
commit
e1ab11a9b0
8 changed files with 326 additions and 247 deletions
|
|
@ -1315,6 +1315,7 @@
|
|||
require('Stores/User/Settings').populate();
|
||||
require('Stores/User/Notification').populate();
|
||||
require('Stores/User/Account').populate();
|
||||
require('Stores/User/Contact').populate();
|
||||
|
||||
var
|
||||
self = this,
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@
|
|||
*/
|
||||
AttachmentModel.prototype.isText = function ()
|
||||
{
|
||||
return -1 < Utils.inArray(this.mimeType, ['application/pgp-signature']) ||
|
||||
return -1 < Utils.inArray(this.mimeType, ['application/pgp-signature', 'message/delivery-status', 'message/rfc822']) ||
|
||||
('text/' === this.mimeType.substr(0, 5) && -1 === Utils.inArray(this.mimeType, ['text/html']));
|
||||
};
|
||||
|
||||
|
|
@ -316,6 +316,12 @@
|
|||
{
|
||||
sClass = 'icon-file-certificate';
|
||||
}
|
||||
else if (-1 < Utils.inArray(sMimeType, [
|
||||
'message/delivery-status', 'message/rfc822'
|
||||
]))
|
||||
{
|
||||
sClass = 'icon-file-text';
|
||||
}
|
||||
else if (-1 < Utils.inArray(aParts[1], [
|
||||
'rtf', 'msword', 'vnd.msword', 'vnd.openxmlformats-officedocument.wordprocessingml.document',
|
||||
'vnd.openxmlformats-officedocument.wordprocessingml.template',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue