From 509914d19a022f0875b2fa4b07d95898cee373bb Mon Sep 17 00:00:00 2001 From: Rowan Manning Date: Mon, 7 Nov 2016 14:26:28 +0000 Subject: [PATCH] Fix the hideElements option I broke this with my incorrect advice :D --- route/new.js | 2 +- route/task/edit.js | 1 + view/new.html | 2 +- view/task/edit.html | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/route/new.js b/route/new.js index a5c9f26..03b6a4b 100644 --- a/route/new.js +++ b/route/new.js @@ -55,7 +55,7 @@ function route(app) { username: req.body.username || undefined, password: req.body.password || undefined, headers: parsedHeaders || undefined, - hideElements: req.body['hide-elements'] || undefined + hideElements: req.body.hideElements || undefined }; app.webservice.tasks.create(newTask, (err, task) => { diff --git a/route/task/edit.js b/route/task/edit.js index ba99ea4..4c2b185 100644 --- a/route/task/edit.js +++ b/route/task/edit.js @@ -61,6 +61,7 @@ function route(app) { req.body.wait = req.body.wait || undefined; req.body.username = req.body.username || undefined; req.body.password = req.body.password || undefined; + req.body.hideElements = req.body.hideElements || undefined; app.webservice.task(req.params.id).edit(req.body, err => { if (err) { task.name = req.body.name; diff --git a/view/new.html b/view/new.html index a6a4d60..509499b 100644 --- a/view/new.html +++ b/view/new.html @@ -115,7 +115,7 @@ along with Pa11y Dashboard. If not, see .
- (CSS selector) + (CSS selector)
diff --git a/view/task/edit.html b/view/task/edit.html index fa2fa29..be107af 100644 --- a/view/task/edit.html +++ b/view/task/edit.html @@ -127,7 +127,7 @@ along with Pa11y Dashboard. If not, see .
- (CSS selector) + (CSS selector)