Fix js error (TypeError: Cannot call method 'settingsGet' of undefined)

+ small other fixes
This commit is contained in:
RainLoop Team 2013-11-21 02:00:30 +04:00
parent cf0968b5a8
commit 726fa6982b
12 changed files with 87 additions and 124 deletions

View file

@ -143,15 +143,12 @@ AbstractApp.prototype.settingsSet = function (sName, mValue)
AbstractApp.prototype.setTitle = function (sTitle)
{
sTitle = ((0 < sTitle.length) ? sTitle + ' - ' : '') +
this.settingsGet('Title') || '';
RL.settingsGet('Title') || '';
if (sTitle !== window.document.title)
{
window.document.title = sTitle;
_.delay(function () {
window.document.title = sTitle;
_.delay(function () {
window.document.title = sTitle;
}, 5);
}
}, 5);
};
/**
@ -161,8 +158,8 @@ AbstractApp.prototype.setTitle = function (sTitle)
AbstractApp.prototype.loginAndLogoutReload = function (bLogout, bClose)
{
var
sCustomLogoutLink = Utils.pString(this.settingsGet('CustomLogoutLink')),
bInIframe = !!this.settingsGet('InIframe')
sCustomLogoutLink = Utils.pString(RL.settingsGet('CustomLogoutLink')),
bInIframe = !!RL.settingsGet('InIframe')
;
bLogout = Utils.isUnd(bLogout) ? false : !!bLogout;