diff --git a/route/new.js b/route/new.js index 6176e64..50ce072 100644 --- a/route/new.js +++ b/route/new.js @@ -8,8 +8,14 @@ module.exports = route; function route (app) { app.express.get('/new', function (req, res) { + var standards = getStandards().map(function (standard) { + if (standard.title === 'WCAG2AA') { + standard.selected = true; + } + return standard; + }); res.render('new', { - standards: getStandards() + standards: standards }); }); diff --git a/view/new.html b/view/new.html index 86c1704..5d1a2ff 100644 --- a/view/new.html +++ b/view/new.html @@ -27,7 +27,6 @@