mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-07 15:27:43 +08:00
62 lines
1.1 KiB
JavaScript
62 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 ()
|
||
|
{
|
||
|
};
|