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

@ -200,7 +200,7 @@ AdminApp.prototype.bootstart = function ()
kn.hideLoading();
if (!this.settingsGet('AllowAdminPanel'))
if (!RL.settingsGet('AllowAdminPanel'))
{
kn.routeOff();
kn.setHash(RL.link().root(), true);
@ -212,10 +212,10 @@ AdminApp.prototype.bootstart = function ()
}
else
{
if (!!this.settingsGet('Auth'))
if (!!RL.settingsGet('Auth'))
{
// TODO
// if (!this.settingsGet('AllowPackages') && AdminPackages)
// if (!RL.settingsGet('AllowPackages') && AdminPackages)
// {
// Utils.disableSettingsViewModel(AdminPackages);
// }