hide-elements and placeholders

This commit is contained in:
Laura Carvajal
2016-10-25 07:59:49 +01:00
committed by Rowan Manning
parent 36dad55bb8
commit 9df456c7c1
3 changed files with 4 additions and 4 deletions

View File

@@ -53,9 +53,9 @@ function route(app) {
timeout: req.body.timeout || undefined,
wait: req.body.wait || undefined,
username: req.body.username || undefined,
password: req.body.password || undefined
password: req.body.password || undefined,
headers: parsedHeaders || undefined,
hideElements: req.body.hide || undefined
hideElements: req.body['hide-elements'] || undefined
};
app.webservice.tasks.create(newTask, (err, task) => {

View File

@@ -106,7 +106,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-headers">Headers Object (JSON)</label>
<input class="form-control" id="new-task-headers" type="text" name="headers" value="{{task.headers}}" placeholder='{headers: {"Cookie": "foo=bar"}}'/>
<input class="form-control" id="new-task-headers" type="text" name="headers" value="{{task.headers}}" placeholder='{"Cookie": "foo=bar"}'/>
</div>
</div>
</div>

View File

@@ -118,7 +118,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-headers">Headers Object (JSON)</label>
<input class="form-control" id="new-task-headers" type="text" name="headers" value="{{task.headers}}" placeholder='{headers: {"Cookie": "foo=bar"}}'/>
<input class="form-control" id="new-task-headers" type="text" name="headers" value="{{task.headers}}" placeholder='{"Cookie": "foo=bar"}'/>
</div>
</div>
</div>