mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
eslint (additional rules)
This commit is contained in:
parent
77a1d3f3df
commit
8e8a041032
150 changed files with 21911 additions and 23106 deletions
|
|
@ -1,62 +1,56 @@
|
|||
|
||||
(function () {
|
||||
var
|
||||
_ = require('_'),
|
||||
ko = require('ko'),
|
||||
|
||||
'use strict';
|
||||
Promises = require('Promises/User/Ajax'),
|
||||
|
||||
var
|
||||
_ = require('_'),
|
||||
ko = require('ko'),
|
||||
kn = require('Knoin/Knoin'),
|
||||
AbstractView = require('Knoin/AbstractView');
|
||||
|
||||
Promises = require('Promises/User/Ajax'),
|
||||
/**
|
||||
* @constructor
|
||||
* @extends AbstractView
|
||||
*/
|
||||
function WelcomePagePopupView()
|
||||
{
|
||||
AbstractView.call(this, 'Popups', 'PopupsWelcomePage');
|
||||
|
||||
kn = require('Knoin/Knoin'),
|
||||
AbstractView = require('Knoin/AbstractView')
|
||||
;
|
||||
this.welcomePageURL = ko.observable('');
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends AbstractView
|
||||
*/
|
||||
function WelcomePagePopupView()
|
||||
{
|
||||
AbstractView.call(this, 'Popups', 'PopupsWelcomePage');
|
||||
this.closeFocused = ko.observable(false);
|
||||
|
||||
this.welcomePageURL = ko.observable('');
|
||||
kn.constructorEnd(this);
|
||||
}
|
||||
|
||||
this.closeFocused = ko.observable(false);
|
||||
kn.extendAsViewModel(['View/Popup/WelcomePage', 'WelcomePagePopupViewModel'], WelcomePagePopupView);
|
||||
_.extend(WelcomePagePopupView.prototype, AbstractView.prototype);
|
||||
|
||||
kn.constructorEnd(this);
|
||||
}
|
||||
WelcomePagePopupView.prototype.clearPopup = function()
|
||||
{
|
||||
this.welcomePageURL('');
|
||||
this.closeFocused(false);
|
||||
};
|
||||
|
||||
kn.extendAsViewModel(['View/Popup/WelcomePage', 'WelcomePagePopupViewModel'], WelcomePagePopupView);
|
||||
_.extend(WelcomePagePopupView.prototype, AbstractView.prototype);
|
||||
/**
|
||||
* @param {string} sUrl
|
||||
* @returns {void}
|
||||
*/
|
||||
WelcomePagePopupView.prototype.onShow = function(sUrl)
|
||||
{
|
||||
this.clearPopup();
|
||||
|
||||
WelcomePagePopupView.prototype.clearPopup = function ()
|
||||
{
|
||||
this.welcomePageURL('');
|
||||
this.closeFocused(false);
|
||||
};
|
||||
this.welcomePageURL(sUrl);
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {string} sUrl
|
||||
*/
|
||||
WelcomePagePopupView.prototype.onShow = function (sUrl)
|
||||
{
|
||||
this.clearPopup();
|
||||
WelcomePagePopupView.prototype.onShowWithDelay = function()
|
||||
{
|
||||
this.closeFocused(true);
|
||||
};
|
||||
|
||||
this.welcomePageURL(sUrl);
|
||||
};
|
||||
WelcomePagePopupView.prototype.onHide = function()
|
||||
{
|
||||
Promises.welcomeClose();
|
||||
};
|
||||
|
||||
WelcomePagePopupView.prototype.onShowWithDelay = function ()
|
||||
{
|
||||
this.closeFocused(true);
|
||||
};
|
||||
|
||||
WelcomePagePopupView.prototype.onHide = function ()
|
||||
{
|
||||
Promises.welcomeClose();
|
||||
};
|
||||
|
||||
module.exports = WelcomePagePopupView;
|
||||
|
||||
}());
|
||||
module.exports = WelcomePagePopupView;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue