mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 05:29:20 +03:00
CommonJS (research/3)
This commit is contained in:
parent
586abbb802
commit
06bb124379
99 changed files with 51037 additions and 42961 deletions
|
|
@ -15,11 +15,14 @@
|
|||
Consts = require('../../Common/Consts.js'),
|
||||
Globals = require('../../Common/Globals.js'),
|
||||
Utils = require('../../Common/Utils.js'),
|
||||
LinkBuilder = require('../Common/LinkBuilder.js'),
|
||||
LinkBuilder = require('../../Common/LinkBuilder.js'),
|
||||
Selector = require('../../Common/Selector.js'),
|
||||
|
||||
Data = require('../../Storages/WebMailDataStorage.js'),
|
||||
Remote = require('../../Storages/WebMailAjaxRemoteStorage.js'),
|
||||
|
||||
RL = require('../../Boots/RainLoopApp.js'),
|
||||
|
||||
kn = require('../../Knoin/Knoin.js'),
|
||||
KnoinAbstractViewModel = require('../../Knoin/KnoinAbstractViewModel.js')
|
||||
;
|
||||
|
|
@ -380,11 +383,22 @@
|
|||
|
||||
this.sDefaultKeyScope = Enums.KeyState.ContactList;
|
||||
|
||||
this.contactTagsSource = _.bind(this.contactTagsSource, this);
|
||||
|
||||
kn.constructorEnd(this);
|
||||
}
|
||||
|
||||
kn.extendAsViewModel('PopupsContactsViewModel', PopupsContactsViewModel);
|
||||
|
||||
PopupsContactsViewModel.prototype.contactTagsSource = function (oData, fResponse)
|
||||
{
|
||||
RL.getContactTagsAutocomplete(oData.term, function (aData) {
|
||||
fResponse(_.map(aData, function (oTagItem) {
|
||||
return oTagItem.toLine(false);
|
||||
}));
|
||||
});
|
||||
};
|
||||
|
||||
PopupsContactsViewModel.prototype.getPropertyPlceholder = function (sType)
|
||||
{
|
||||
var sResult = '';
|
||||
|
|
@ -763,6 +777,6 @@
|
|||
this.contacts([]);
|
||||
};
|
||||
|
||||
module.exports = new PopupsContactsViewModel();
|
||||
module.exports = PopupsContactsViewModel;
|
||||
|
||||
}(module));
|
||||
Loading…
Add table
Add a link
Reference in a new issue