mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Code refactoring (5) (es5 -> es2015)
This commit is contained in:
parent
c148e19ea3
commit
cec53b111f
68 changed files with 2210 additions and 2472 deletions
|
|
@ -1068,7 +1068,10 @@ MessageViewMailBoxUserView.prototype.getAttachmentsHashes = function()
|
|||
|
||||
MessageViewMailBoxUserView.prototype.downloadAsZip = function()
|
||||
{
|
||||
var self = this, aHashes = this.getAttachmentsHashes();
|
||||
var
|
||||
self = this,
|
||||
aHashes = this.getAttachmentsHashes();
|
||||
|
||||
if (0 < aHashes.length)
|
||||
{
|
||||
Promises.attachmentsActions('Zip', aHashes, this.downloadAsZipLoading).then(function(oResult) {
|
||||
|
|
@ -1094,7 +1097,10 @@ MessageViewMailBoxUserView.prototype.downloadAsZip = function()
|
|||
|
||||
MessageViewMailBoxUserView.prototype.saveToOwnCloud = function()
|
||||
{
|
||||
var self = this, aHashes = this.getAttachmentsHashes();
|
||||
var
|
||||
self = this,
|
||||
aHashes = this.getAttachmentsHashes();
|
||||
|
||||
if (0 < aHashes.length)
|
||||
{
|
||||
Promises.attachmentsActions('OwnCloud', aHashes, this.saveToOwnCloudLoading).then(function(oResult) {
|
||||
|
|
@ -1118,7 +1124,11 @@ MessageViewMailBoxUserView.prototype.saveToOwnCloud = function()
|
|||
|
||||
MessageViewMailBoxUserView.prototype.saveToDropbox = function()
|
||||
{
|
||||
var self = this, aFiles = [], aHashes = this.getAttachmentsHashes();
|
||||
var
|
||||
self = this,
|
||||
aFiles = [],
|
||||
aHashes = this.getAttachmentsHashes();
|
||||
|
||||
if (0 < aHashes.length)
|
||||
{
|
||||
if (window.Dropbox)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue