This commit is contained in:
RainLoop Team 2014-05-05 00:36:48 +04:00
parent e5ded48d14
commit 3328bcd9eb
14 changed files with 88 additions and 30 deletions

View file

@ -18,6 +18,7 @@ function AdminGeneral()
this.allowLanguagesOnSettings = oData.allowLanguagesOnSettings;
this.allowAdditionalAccounts = oData.allowAdditionalAccounts;
this.allowIdentities = oData.allowIdentities;
this.allowGravatar = oData.allowGravatar;
this.themesOptions = ko.computed(function () {
return _.map(oData.themes(), function (sTheme) {
@ -80,6 +81,12 @@ AdminGeneral.prototype.onBuild = function ()
});
});
self.allowGravatar.subscribe(function (bValue) {
RL.remote().saveAdminConfig(null, {
'AllowGravatar': bValue ? '1' : '0'
});
});
self.allowThemes.subscribe(function (bValue) {
RL.remote().saveAdminConfig(null, {
'AllowThemes': bValue ? '1' : '0'