// TODO: figure out why things don't work when you set a field to default to "true"
Setting = FormModel.extend({
blankSchema: {
requireViewInvite: false,
requirePostInvite: false,
requirePostsApproval: false,
emailNotifications: false,
nestedComments: false,
redistributeKarma: false,
defaultEmail: '',
scoreUpdateInterval: '',
postInterval: '',
commentInterval: '',
maxPostsPerDay: '',
startInvitesCount: 3,
postsPerPage: 10,
title: '',
tagline: '',
logoUrl: '',
logoHeight: '',
logoWidth: '',
language: 'en',
backgroundColor: '',
secondaryColor: '',
buttonColor: '',
headerColor: '',
googleAnalyticsId: '',
mixpanelId: '',
clickyId:'',
goSquaredId: '',
embedlyId: '',
// bitlyToken: '',
mailChimpAPIKey: '',
mailChimpListId: '',
footerCode: '',
extraCode: '',
notes: ''
},
init: function(options) {
this._super(Settings, options);
this.overwriteTitle('scoreUpdateInterval', 'Scoring Frequency');
this.overwriteTitle('requireViewInvite', 'Require invite to view?');
this.overwriteTitle('requirePostInvite', 'Require invite to post?');
this.overwriteTitle('emailNotifications', 'Enable email notifications?');
this.overwriteTitle('requirePostsApproval', 'Posts must be approved by admin?');
this.overwriteTitle('title', 'Site Title');
this.overwriteTitle('mixpanelId', 'Mixpanel ID');
this.overwriteTitle('clickyId', 'Clicky ID');
this.overwriteTitle('goSquaredId', 'GoSquared ID');
// this.overwriteTitle('bitlyToken', 'Bitly Token');
this.overwriteTitle('mailChimpAPIKey', 'MailChimp API Key');
this.overwriteTitle('mailChimpListId', 'MailChimp List ID');
this.overwriteTitle('logoUrl', 'Logo URL');
this.overwriteType('footerCode', 'textarea');
this.overwriteType('extraCode', 'textarea');
this.overwriteType('notes', 'textarea');
}
});