mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
jshint -> eslint
This commit is contained in:
parent
40b3f929e9
commit
77a1d3f3df
100 changed files with 716 additions and 811 deletions
|
|
@ -31,4 +31,4 @@
|
|||
|
||||
module.exports = AboutUserView;
|
||||
|
||||
}());
|
||||
}());
|
||||
|
|
|
|||
|
|
@ -141,4 +141,4 @@
|
|||
|
||||
module.exports = AbstractSystemDropDownUserView;
|
||||
|
||||
}());
|
||||
}());
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@
|
|||
self = this,
|
||||
sPassword = this.password(),
|
||||
|
||||
fLoginRequest = _.bind(function (sPassword) {
|
||||
fLoginRequest = _.bind(function (sLoginPassword) {
|
||||
|
||||
Remote.login(_.bind(function (sResult, oData) {
|
||||
|
||||
|
|
@ -215,7 +215,7 @@
|
|||
this.additionalCode.visibility(true);
|
||||
this.submitRequest(false);
|
||||
|
||||
_.delay(function(){
|
||||
_.delay(function() {
|
||||
self.additionalCode.focused(true);
|
||||
}, 100);
|
||||
}
|
||||
|
|
@ -261,13 +261,13 @@
|
|||
this.submitError(Translator.getNotification(Enums.Notification.UnknownError));
|
||||
}
|
||||
|
||||
}, this), this.email(), '', sPassword, !!this.signMe(),
|
||||
}, this), this.email(), '', sLoginPassword, !!this.signMe(),
|
||||
this.bSendLanguage ? this.language() : '',
|
||||
this.additionalCode.visibility() ? this.additionalCode() : '',
|
||||
this.additionalCode.visibility() ? !!this.additionalCodeSignMe() : false
|
||||
);
|
||||
|
||||
Local.set(Enums.ClientSideKeyName.LastSignMe, !!this.signMe() ? '-1-' : '-0-');
|
||||
Local.set(Enums.ClientSideKeyName.LastSignMe, this.signMe() ? '-1-' : '-0-');
|
||||
|
||||
}, this)
|
||||
;
|
||||
|
|
@ -517,4 +517,4 @@
|
|||
|
||||
module.exports = LoginUserView;
|
||||
|
||||
}());
|
||||
}());
|
||||
|
|
|
|||
|
|
@ -279,7 +279,7 @@
|
|||
|
||||
this.quotaTooltip = _.bind(this.quotaTooltip, this);
|
||||
|
||||
this.selector = new Selector(this.messageList, this.selectorMessageSelected, this.selectorMessageFocused,
|
||||
this.selector = new Selector.Selector(this.messageList, this.selectorMessageSelected, this.selectorMessageFocused,
|
||||
'.messageListItem .actionHandle', '.messageListItem.selected', '.messageListItem .checkboxMessage',
|
||||
'.messageListItem.focused');
|
||||
|
||||
|
|
@ -510,26 +510,24 @@
|
|||
|
||||
var
|
||||
oEl = Utils.draggablePlace(),
|
||||
aUids = MessageStore.messageListCheckedOrSelectedUidsWithSubMails()
|
||||
updateUidsInfo = function() {
|
||||
var aUids = MessageStore.messageListCheckedOrSelectedUidsWithSubMails();
|
||||
oEl.data('rl-uids', aUids);
|
||||
oEl.find('.text').text('' + aUids.length);
|
||||
}
|
||||
;
|
||||
|
||||
oEl.data('rl-folder', FolderStore.currentFolderFullNameRaw());
|
||||
oEl.data('rl-uids', aUids);
|
||||
oEl.find('.text').text('' + aUids.length);
|
||||
|
||||
_.defer(function () {
|
||||
var aUids = MessageStore.messageListCheckedOrSelectedUidsWithSubMails();
|
||||
|
||||
oEl.data('rl-uids', aUids);
|
||||
oEl.find('.text').text('' + aUids.length);
|
||||
});
|
||||
updateUidsInfo();
|
||||
_.defer(updateUidsInfo);
|
||||
|
||||
return oEl;
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} sFolderFullNameRaw
|
||||
* @param {string|bool} sUid
|
||||
* @param {string|bool} mUid
|
||||
* @param {number} iSetAction
|
||||
* @param {Array=} aMessages = null
|
||||
*/
|
||||
|
|
@ -964,9 +962,8 @@
|
|||
{
|
||||
var
|
||||
self = this,
|
||||
oMessage = _.find(this.messageList(), function (oMessage) {
|
||||
return oMessage &&
|
||||
!Cache.hasRequestedMessage(oMessage.folderFullNameRaw, oMessage.uid);
|
||||
oMessage = _.find(this.messageList(), function (oItem) {
|
||||
return oItem && !Cache.hasRequestedMessage(oItem.folderFullNameRaw, oItem.uid);
|
||||
})
|
||||
;
|
||||
|
||||
|
|
@ -1027,17 +1024,17 @@
|
|||
|
||||
var
|
||||
oJua = new Jua({
|
||||
'action': Links.append(),
|
||||
'name': 'AppendFile',
|
||||
'queueSize': 1,
|
||||
'multipleSizeLimit': 1,
|
||||
'hidden': {
|
||||
'Folder': function () {
|
||||
action: Links.append(),
|
||||
name: 'AppendFile',
|
||||
queueSize: 1,
|
||||
multipleSizeLimit: 1,
|
||||
hidden: {
|
||||
Folder: function () {
|
||||
return FolderStore.currentFolderFullNameRaw();
|
||||
}
|
||||
},
|
||||
'dragAndDropElement': this.dragOverArea(),
|
||||
'dragAndDropBodyElement': this.dragOverBodyArea()
|
||||
dragAndDropElement: this.dragOverArea(),
|
||||
dragAndDropBodyElement: this.dragOverBodyArea()
|
||||
})
|
||||
;
|
||||
|
||||
|
|
@ -1063,7 +1060,7 @@
|
|||
}, this))
|
||||
.on('onSelect', _.bind(function (sUid, oData) {
|
||||
|
||||
if (sUid && oData && 'message/rfc822' === oData['Type'])
|
||||
if (sUid && oData && 'message/rfc822' === oData.Type)
|
||||
{
|
||||
MessageStore.messageListLoading(true);
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -347,7 +347,7 @@
|
|||
}, this);
|
||||
|
||||
this.messageActiveDom.subscribe(function (oDom) {
|
||||
this.bodyBackgroundColor(oDom ? this.detectDomBackgroundColor(oDom): '');
|
||||
this.bodyBackgroundColor(oDom ? this.detectDomBackgroundColor(oDom) : '');
|
||||
}, this);
|
||||
|
||||
this.message.subscribe(function (oMessage) {
|
||||
|
|
@ -469,22 +469,22 @@
|
|||
iLimit = 5,
|
||||
sResult = '',
|
||||
aC = null,
|
||||
fFindDom = function (oDom) {
|
||||
var aC = oDom ? oDom.children() : null;
|
||||
return (aC && 1 === aC.length && aC.is('table,div,center')) ? aC : null;
|
||||
fFindDom = function (oInputDom) {
|
||||
var children = oInputDom ? oInputDom.children() : null;
|
||||
return (children && 1 === children.length && children.is('table,div,center')) ? children : null;
|
||||
},
|
||||
fFindColor = function (oDom) {
|
||||
var sResult = '';
|
||||
if (oDom)
|
||||
fFindColor = function (oInputDom) {
|
||||
var color = '';
|
||||
if (oInputDom)
|
||||
{
|
||||
sResult = oDom.css('background-color') || '';
|
||||
if (!oDom.is('table'))
|
||||
color = oInputDom.css('background-color') || '';
|
||||
if (!oInputDom.is('table'))
|
||||
{
|
||||
sResult = 'rgba(0, 0, 0, 0)' === sResult || 'transparent' === sResult ? '' : sResult;
|
||||
color = 'rgba(0, 0, 0, 0)' === color || 'transparent' === color ? '' : color;
|
||||
}
|
||||
}
|
||||
|
||||
return sResult;
|
||||
return color;
|
||||
}
|
||||
;
|
||||
|
||||
|
|
@ -606,10 +606,10 @@
|
|||
iListIndex++;
|
||||
|
||||
return {
|
||||
'src': oItem.linkPreview(),
|
||||
'thumb': oItem.linkThumbnail(),
|
||||
'subHtml': oItem.fileName,
|
||||
'downloadUrl': oItem.linkPreview()
|
||||
src: oItem.linkPreview(),
|
||||
thumb: oItem.linkThumbnail(),
|
||||
subHtml: oItem.fileName,
|
||||
downloadUrl: oItem.linkPreview()
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -707,7 +707,7 @@
|
|||
oDom
|
||||
.on('click', 'a', function (oEvent) {
|
||||
// setup maito protocol
|
||||
return !(!!oEvent && 3 !== oEvent['which'] && Utils.mailToHelper($(this).attr('href'),
|
||||
return !(!!oEvent && 3 !== oEvent.which && Utils.mailToHelper($(this).attr('href'),
|
||||
Settings.capa(Enums.Capa.Composer) ? require('View/Popup/Compose') : null));
|
||||
})
|
||||
// .on('mouseover', 'a', _.debounce(function (oEvent) {
|
||||
|
|
@ -1221,4 +1221,4 @@
|
|||
|
||||
module.exports = MessageViewMailBoxUserView;
|
||||
|
||||
}());
|
||||
}());
|
||||
|
|
|
|||
|
|
@ -99,4 +99,4 @@
|
|||
|
||||
module.exports = MenuSettingsUserView;
|
||||
|
||||
}());
|
||||
}());
|
||||
|
|
|
|||
|
|
@ -73,4 +73,4 @@
|
|||
|
||||
module.exports = PaneSettingsUserView;
|
||||
|
||||
}());
|
||||
}());
|
||||
|
|
|
|||
|
|
@ -25,4 +25,4 @@
|
|||
|
||||
module.exports = SystemDropDownSettingsUserView;
|
||||
|
||||
}());
|
||||
}());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue