mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Code refactoring
This commit is contained in:
parent
4a95dd6195
commit
36329110e5
81 changed files with 3474 additions and 2124 deletions
|
|
@ -353,10 +353,10 @@
|
|||
|
||||
var
|
||||
self = this,
|
||||
RL = require('../../Boots/RainLoopApp.js')
|
||||
App = require('../../Apps/RainLoopApp.js')
|
||||
;
|
||||
|
||||
RL.contactsSync(function (sResult, oData) {
|
||||
App.contactsSync(function (sResult, oData) {
|
||||
if (Enums.StorageResultType.Success !== sResult || !oData || !oData.Result)
|
||||
{
|
||||
window.alert(Utils.getNotification(
|
||||
|
|
@ -401,8 +401,8 @@
|
|||
|
||||
PopupsContactsViewModel.prototype.contactTagsSource = function (oData, fResponse)
|
||||
{
|
||||
var RL = require('../../Boots/RainLoopApp.js');
|
||||
RL.getContactTagsAutocomplete(oData.term, function (aData) {
|
||||
var App = require('../../Apps/RainLoopApp.js');
|
||||
App.getContactTagsAutocomplete(oData.term, function (aData) {
|
||||
fResponse(_.map(aData, function (oTagItem) {
|
||||
return oTagItem.toLine(false);
|
||||
}));
|
||||
|
|
@ -487,14 +487,14 @@
|
|||
|
||||
PopupsContactsViewModel.prototype.exportVcf = function ()
|
||||
{
|
||||
var RL = require('../../Boots/RainLoopApp.js');
|
||||
RL.download(LinkBuilder.exportContactsVcf());
|
||||
var App = require('../../Apps/RainLoopApp.js');
|
||||
App.download(LinkBuilder.exportContactsVcf());
|
||||
};
|
||||
|
||||
PopupsContactsViewModel.prototype.exportCsv = function ()
|
||||
{
|
||||
var RL = require('../../Boots/RainLoopApp.js');
|
||||
RL.download(LinkBuilder.exportContactsCsv());
|
||||
var App = require('../../Apps/RainLoopApp.js');
|
||||
App.download(LinkBuilder.exportContactsCsv());
|
||||
};
|
||||
|
||||
PopupsContactsViewModel.prototype.initUploader = function ()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue