Making resource_id_input field hidden

This commit is contained in:
Simon Redfern 2015-07-13 23:18:39 +02:00
parent 13c6ee3cbe
commit ccd9bd9ae4

View File

@ -134,9 +134,9 @@ object CallMe extends Loggable {
// The form field (on the left) is bound to the variable (urlToCall)
// (However, updating the var here does not seem to update the form field value)
"@resource_id_input" #> text(resourceId, s => resourceId = s) &
"@request_verb_input" #> text(requestVerb, s => requestVerb = s) &
"@request_url_input" #> text(requestUrl, s => requestUrl = s) &
"@resource_id_input" #> text(resourceId, s => resourceId = s, "type" -> "hidden") &
"@request_verb_input" #> text(requestVerb, s => requestVerb = s, "type" -> "hidden") &
"@request_url_input" #> text(requestUrl, s => requestUrl = s, "maxlength" -> "255", "size" -> "100") &
"@request_body_input" #> text(requestBody, s => requestBody = s) &
// Replace the type=submit with Javascript that makes the ajax call.
"type=submit" #> ajaxSubmit("Go", process)