Fix the hideElements option

I broke this with my incorrect advice :D
This commit is contained in:
Rowan Manning
2016-11-07 14:26:28 +00:00
committed by Rowan Manning
parent 9df456c7c1
commit 509914d19a
4 changed files with 4 additions and 3 deletions

View File

@@ -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) => {

View File

@@ -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;

View File

@@ -115,7 +115,7 @@ along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
<div class="row">
<div class="col-md-4 col-sm-4 col-xs-6">
<label class="control-label" for="new-task-hide-elements">Hide Elements</label>
<input class="form-control" id="new-task-hide-elements" type="text" name="hide-elements" value="{{task.hide-elements}}" placeholder=".advert, #modal, div[aria-role=presentation]"/> <em>(CSS selector)</em>
<input class="form-control" id="new-task-hide-elements" type="text" name="hideElements" value="{{task.hideElements}}" placeholder=".advert, #modal, div[aria-role=presentation]"/> <em>(CSS selector)</em>
</div>
</div>
</div>

View File

@@ -127,7 +127,7 @@ along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
<div class="row">
<div class="col-md-4 col-sm-4 col-xs-6">
<label class="control-label" for="new-task-hide-elements">Hide Elements</label>
<input class="form-control" id="new-task-hide-elements" type="text" name="hide-elements" value="{{task.hide-elements}}" placeholder=".advert, #modal, div[aria-role=presentation]"/> <em>(CSS selector)</em>
<input class="form-control" id="new-task-hide-elements" type="text" name="hideElements" value="{{task.hideElements}}" placeholder=".advert, #modal, div[aria-role=presentation]"/> <em>(CSS selector)</em>
</div>
</div>
</div>