Added q.min file

This commit is contained in:
RainLoop Team 2015-03-26 02:16:53 +04:00
parent ed7acaa33f
commit c4aabb0cd4
7 changed files with 18 additions and 27 deletions

View file

@ -13,6 +13,7 @@
Plugins = require('Common/Plugins'),
AppStore = require('Stores/User/App'),
AccountStore = require('Stores/User/Account'),
Settings = require('Storage/Settings'),
kn = require('Knoin/Knoin'),
@ -71,7 +72,8 @@
'SettingsSecurity', 'SETTINGS_LABELS/LABEL_SECURITY_NAME', 'security');
}
if ((Settings.settingsGet('AllowGoogleSocial') && Settings.settingsGet('AllowGoogleSocialAuth')) ||
if (AccountStore.isRootAccount() &&
(Settings.settingsGet('AllowGoogleSocial') && Settings.settingsGet('AllowGoogleSocialAuth')) ||
Settings.settingsGet('AllowFacebookSocial') ||
Settings.settingsGet('AllowTwitterSocial'))
{

View file

@ -16,6 +16,7 @@
function AccountUserStore()
{
this.email = ko.observable('');
this.parentEmail = ko.observable('');
// this.incLogin = ko.observable('');
// this.outLogin = ko.observable('');
@ -54,6 +55,15 @@
AccountUserStore.prototype.populate = function ()
{
this.email(Settings.settingsGet('Email'));
this.parentEmail(Settings.settingsGet('ParentEmail'));
};
/**
* @returns {boolean}
*/
AccountUserStore.prototype.isRootAccount = function ()
{
return '' === this.parentEmail();
};
module.exports = new AccountUserStore();

View file

@ -476,7 +476,7 @@
self.addDropboxAttachment(aFiles[0]);
}
},
'linkType': "direct",
'linkType': 'direct',
'multiselect': false
});
}