Skip to content

Commit

Permalink
Simplify faq logic
Browse files Browse the repository at this point in the history
  • Loading branch information
crookedneighbor committed Sep 6, 2015
1 parent 4081a9a commit 245c7d4
Showing 1 changed file with 10 additions and 50 deletions.
60 changes: 10 additions & 50 deletions common/script/content/faq.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,56 +6,16 @@ var t = require('./translation.coffee');

var faq = {};

faq.questions = [
{
question: t('mobileFaqQuestion1'),
ios: t('iosFaqAnswer1')
},
{
question: t('mobileFaqQuestion2'),
ios: t('iosFaqAnswer2')
},
{
question: t('mobileFaqQuestion3'),
ios: t('iosFaqAnswer3')
},
{
question: t('mobileFaqQuestion4'),
ios: t('iosFaqAnswer4')
},
{
question: t('mobileFaqQuestion5'),
ios: t('iosFaqAnswer5')
},
{
question: t('mobileFaqQuestion6'),
ios: t('iosFaqAnswer6')
},
{
question: t('mobileFaqQuestion7'),
ios: t('iosFaqAnswer7')
},
{
question: t('mobileFaqQuestion8'),
ios: t('iosFaqAnswer8')
},
{
question: t('mobileFaqQuestion9'),
ios: t('iosFaqAnswer9')
},
{
question: t('mobileFaqQuestion10'),
ios: t('iosFaqAnswer10')
},
{
question: t('mobileFaqQuestion11'),
ios: t('iosFaqAnswer11')
},
{
question: t('mobileFaqQuestion12'),
ios: t('iosFaqAnswer12')
}
];
faq.questions = [];

for (var i = 1; i <= 12; i++) {
var question = {
question: t('mobileFaqQuestion' + i),
ios: t('iosFaqAnswer' + i)
};

faq.questions.push(question);
}

faq.stillNeedHelp = {
ios: t('iosStillNeedHelp')
Expand Down

0 comments on commit 245c7d4

Please sign in to comment.