mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-02 21:12:02 +08:00
4cc2207513
Original unminified source code (dev folder - js, css, less) (fixes #6) Grunt build system Multiple identities correction (fixes #9) Compose html editor (fixes #12) New general settings - Loading Description New warning about default admin password Split general and login screen settings
61 lines
1.1 KiB
JavaScript
61 lines
1.1 KiB
JavaScript
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
|
|
|
/**
|
|
* @param {string=} sPosition = ''
|
|
* @param {string=} sTemplate = ''
|
|
* @constructor
|
|
*/
|
|
function KnoinAbstractViewModel(sPosition, sTemplate)
|
|
{
|
|
this.sPosition = Utils.pString(sPosition);
|
|
this.sTemplate = Utils.pString(sTemplate);
|
|
|
|
this.viewModelName = '';
|
|
this.viewModelVisibility = ko.observable(false);
|
|
if ('Popups' === this.sPosition)
|
|
{
|
|
this.modalVisibility = ko.observable(false);
|
|
}
|
|
|
|
this.viewModelDom = null;
|
|
}
|
|
|
|
/**
|
|
* @type {string}
|
|
*/
|
|
KnoinAbstractViewModel.prototype.sPosition = '';
|
|
|
|
/**
|
|
* @type {string}
|
|
*/
|
|
KnoinAbstractViewModel.prototype.sTemplate = '';
|
|
|
|
/**
|
|
* @type {string}
|
|
*/
|
|
KnoinAbstractViewModel.prototype.viewModelName = '';
|
|
|
|
/**
|
|
* @type {?}
|
|
*/
|
|
KnoinAbstractViewModel.prototype.viewModelDom = null;
|
|
|
|
/**
|
|
* @return {string}
|
|
*/
|
|
KnoinAbstractViewModel.prototype.viewModelTemplate = function ()
|
|
{
|
|
return this.sTemplate;
|
|
};
|
|
|
|
/**
|
|
* @return {string}
|
|
*/
|
|
KnoinAbstractViewModel.prototype.viewModelPosition = function ()
|
|
{
|
|
return this.sPosition;
|
|
};
|
|
|
|
KnoinAbstractViewModel.prototype.cancelCommand = KnoinAbstractViewModel.prototype.closeCommand = function ()
|
|
{
|
|
};
|