mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Add alias support (domains)
This commit is contained in:
parent
a1d829c697
commit
28a125426a
26 changed files with 1014 additions and 92 deletions
|
|
@ -6,6 +6,8 @@
|
|||
var
|
||||
_ = require('_'),
|
||||
|
||||
Utils = require('Common/Utils'),
|
||||
|
||||
AbstractAjaxRemote = require('Remote/AbstractAjax')
|
||||
;
|
||||
|
||||
|
|
@ -54,10 +56,14 @@
|
|||
|
||||
/**
|
||||
* @param {?Function} fCallback
|
||||
* @param {boolean=} bIncludeAliases = true
|
||||
*/
|
||||
RemoteAdminStorage.prototype.domainList = function (fCallback)
|
||||
RemoteAdminStorage.prototype.domainList = function (fCallback, bIncludeAliases)
|
||||
{
|
||||
this.defaultRequest(fCallback, 'AdminDomainList');
|
||||
bIncludeAliases = Utils.isUnd(bIncludeAliases) ? true : bIncludeAliases;
|
||||
this.defaultRequest(fCallback, 'AdminDomainList', {
|
||||
'IncludeAliases': bIncludeAliases ? '1' : '0'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -208,6 +214,14 @@
|
|||
});
|
||||
};
|
||||
|
||||
RemoteAdminStorage.prototype.createDomainAlias = function (fCallback, sName, sAlias)
|
||||
{
|
||||
this.defaultRequest(fCallback, 'AdminDomainAliasSave', {
|
||||
'Name': sName,
|
||||
'Alias': sAlias
|
||||
});
|
||||
};
|
||||
|
||||
RemoteAdminStorage.prototype.createOrUpdateDomain = function (fCallback,
|
||||
bCreate, sName,
|
||||
sIncHost, iIncPort, sIncSecure, bIncShortLogin,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue