From 366c88708631a1df6800abcb7b65484af52569f7 Mon Sep 17 00:00:00 2001 From: Rowan Manning Date: Tue, 17 Sep 2013 09:02:48 +0100 Subject: [PATCH] Make WCAG2AA the default standard when adding URL --- route/new.js | 8 +++++++- view/new.html | 1 - 2 files changed, 7 insertions(+), 2 deletions(-) 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 @@